home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr28 / nos19doc.zip / MAN19D.TXT
Text File  |  1993-03-07  |  167KB  |  4,423 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.                           Network Operating System
  11.                              User Reference Manual
  12.  
  13.  
  14.                                Phil Karn, KA9Q
  15.                                        and
  16.                        Gerard van der Grinten, PA0GRI
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.                This manual reflects version 911229 of NOS 1.9d
  48.                      as released to the public by PA0GRI
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.                                     - 2 -
  69.  
  70.  
  71.  
  72.  
  73.  
  74. 1.  The NOS.EXE Program
  75.  
  76. The MS-DOS executable file NOS.EXE (Further  called  Nos)  provides  Internet
  77. (TCP/IP),  NET/ROM  and  AX.25 facilities.  Because it has an internal multi-
  78. tasking operating system, Nos can act simultaneously as a  client,  a  server
  79. and  a  packet switch for all three sets of protocols. That is, while a local
  80. user accesses remote services, the system can also provide  those  same  ser-
  81. vices  to remote users while also switching IP, NET/ROM and AX.25 packets and
  82. frames between other client and server nodes.
  83.  
  84. The keyboard and display is used by the local operator to control  both  host
  85. and gateway level functions, for which a number of commands are provided.
  86.  
  87. 1.1.  Startup
  88.  
  89. nos [-b] [-s <#sockets>] [-d </directory>] [-v] [<startup file>]
  90.  
  91. When Nos is  executed  without  arguments,  it  attempts  to  open  the  file
  92. autoexec.nos in the root directory of the current drive.  If it exists, it is
  93. read and executed as though its contents were typed on the  console  as  com-
  94. mands.  This feature is useful for attaching communication interfaces, confi-
  95. guring network addresses, and starting the various services.
  96.  
  97. Four command-line options are accepted:
  98.  
  99. 1.1.1.  -b
  100.  
  101. The -b option specifies the use of BIOS for console output; the default is to
  102. write  directly  to the video display buffer. Use this option if you are run-
  103. ning under a  windowing  package  and  have  trouble  with  output  "bleeding
  104. through" on top of other windows.
  105.  
  106. 1.1.2.  -s <no_of_sockets>
  107.  
  108. The -s option specifies the size of the socket array to be  allocated  within
  109. Nos.  This limits the number of network connections that may exist simultane-
  110. ously; the default is 40.
  111.  
  112. 1.1.3.  -d </directory>
  113.  
  114. The -d option allows the user to specify a "root" directory  for  the  confi-
  115. guration and spool files; it defaults to the root directory of the system.
  116.  
  117. 1.1.4.  -v
  118.  
  119. The -v option allows the user to view command execution during the startup of
  120. Nos.  It  lets  the commands read from autoexec.nos echo before they are exe-
  121. cuted. This is a nice help if Nos stops (hangs) during initialization.
  122.  
  123. After all command line options, the name of a alternate startup file  may  be
  124. specified. This file is then opened and read instead of autoexec.nos.
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.                                     - 3 -
  135. 1.2.  DOS environement variables.
  136.  
  137. The following DOS environement variables can be used  to  specify  things  to
  138. NOS.
  139.  
  140. 1.2.1.  TZ
  141.  
  142. The TZ variable should be set to the local timezone. Default is UTC.  This is
  143. used on the timestamp in smtp.
  144.  
  145. 1.2.2.  MAILER
  146.  
  147. The MAILER specifies what program should be started when the mail command  is
  148. entered. Default is BM.EXE.
  149.  
  150. 1.2.3.  COMSPEC
  151.  
  152. The COMSPEC specifies what command shell will be used to shell  out  of  Nos.
  153. This  is  normaly  set  by  MS-DOS  startup  to COMMAND.COM.  Default is also
  154. COMMAND.COM.
  155.  
  156. 1.2.4.  TMP
  157.  
  158. The TMP variable is used to create a spot where temporary files are  created.
  159. Without  TMP  being  set the temp files are created in the root directory.  A
  160. sample is "set TMP=C:\tmp\".
  161.  
  162. 1.2.5.  USER
  163.  
  164. The USER variable is used by ftp and Rlogin to set the username for the  rlo-
  165. gin  daemon on the remote system. The default when not setting USER is guest.
  166. Guess you don't like it, but that's life.  With ftp the user is suggested  in
  167. the  user name prompt. If a cr only is given the suggested name is used, oth-
  168. erwise the given name.
  169.  
  170. 2.  Console modes
  171.  
  172. The console may be in one of two modes: command mode and converse  mode.   In
  173. command  mode, the prompt net> is displayed and any of the commands described
  174. in the Commands chapter may be entered.  In converse mode, keyboard input  is
  175. processed according to the current session.
  176.  
  177. Sessions come in many types: Telnet, Ttylink, Rlogin, FTP, AX25, Finger, Com-
  178. mand, NETROM, Ping, More, Dial, Dir, PPP PAP, Hopcheck and Tip.
  179.  
  180. In a Telnet, Ttylink, AX25, NETROM, Rlogin, or Tip session, keyboard input is
  181. sent  to the remote system and any output from the remote system is displayed
  182. on the console.  In an FTP session, keyboard input is first examined  to  see
  183. if  it is a known local command; if so it is executed locally.  If not, it is
  184. "passed through"  to  the  remote  FTP  server.   (See  the  FTP  Subcommands
  185. chapter).   In a Ping session the user may test the path to a remote site, in
  186. a More session, the user may examine a local file. A Hopcheck session is used
  187. to trace the path taken by packets to reach a specified destination. A Finger
  188. session is used to peek at a remote system for its users (and what  they  are
  189. doing  on  some  extended  responses from UNIX systems). PPP PAP is used as a
  190. link setup like slip between two systems.
  191.  
  192. The keyboard also has cooked and raw  states.   In  cooked  state,  input  is
  193. line-at-a-time;  the  user may use the line editing characters ^U, ^R, ^B, ^W
  194. and backspace to erase the line, redisplay the line, redisplay the  remainder
  195. of  the  previous  line,  erase  last  word  and  erase  the  last character,
  196.  
  197.  
  198.  
  199.  
  200.                                     - 4 -
  201. respectively.  Hitting either return or line feed passes the complete line up
  202. to the application.  In raw mode, each character is immediately passed to the
  203. application as it is typed.  The keyboard is always in cooked state  in  com-
  204. mand  mode.   It  is  also cooked in converse mode on an AX25, FTP or NET/ROM
  205. session.  In a Telnet or Ttylink session it depends on whether the remote end
  206. has  issued  (and  the  local  end has accepted) the Telnet WILL ECHO option.
  207. (See the echo command).
  208.  
  209. On the IBM-PC, the user may escape back to command mode by  hitting  the  F10
  210. key  or  the  escape  key.   On other systems, the user must enter the escape
  211. character, which is by default control-] (hex 1d, ASCII GS). (Note that  this
  212. is  distinct from the ASCII character of the same name). The escape character
  213. can be changed (see the escape command). The F10 key can  be  redefined  with
  214. the  fkey  command  so the user is now warned to leave one escape possibility
  215. open for himself.  Setting both F10 and escape to unreachable codes renders a
  216. system unescapable and the user hung in a session.
  217.  
  218. In the IBM PC version, each session (including the command "session") has its
  219. own  screen.   When a new session is created, the command display is saved in
  220. memory and the screen is cleared.  When the command escape key  (usually  F10
  221. or  ^]) is hit, the current session screen is saved and the command screen is
  222. restored.  When a session is resumed, its screen is restored  exactly  as  it
  223. appeared when it was last current.
  224.  
  225. 3.  Commands
  226.  
  227. This section describes the commands recognized in command mode, or  within  a
  228. startup  file  such  as autoexec.nos.  These are given in the following nota-
  229. tion:
  230.  
  231.         command
  232.         command literal_parameter
  233.         command subcommand <parameter>
  234.         command [<optional_parameter>]
  235.         command a | b
  236.  
  237.  
  238. Many commands take subcommands  or  parameters,  which  may  be  optional  or
  239. required.  In  general,  if a required subcommand or parameter is omitted, an
  240. error message will summarize the available subcommands  or  required  parame-
  241. ters.   (Giving  a '?' in place of the subcommand will also generate the mes-
  242. sage.  This is useful when the command word alone is a valid command.)  If  a
  243. command  takes  an  optional value parameter, issuing the command without the
  244. parameter generally displays the current value of the  variable.  (Exceptions
  245. to this rule are noted in the individual command descriptions.)
  246.  
  247. Two or more parameters separated by vertical bar(s) denote a  choice  between
  248. the  specified values.  Optional parameters are shown enclosed in [brackets],
  249. and a parameter enclosed in <angle  brackets>  should  be  replaced  with  an
  250. actual value or string.  For example, the notation <hostid> denotes an actual
  251. host or gateway, which may be specified in one of two ways:  as a numeric  IP
  252. address  in  dotted  decimal  notation (eg. 44.0.0.1.), or as a symbolic name
  253. listed in the file domain.txt,
  254.  
  255. All commands and many subcommands may be  abbreviated.  You  only  need  type
  256. enough  of a command's name to distinguish it from others that begin with the
  257. same series of letters. Parameters, however, must be typed in full.
  258.  
  259. Certain FTP subcommands (eg. put, get, dir, etc) are recognized only in  con-
  260. verse  mode with the appropriate FTP session; they are not recognized in com-
  261. mand mode.  (See the FTP Subcommands chapter.)
  262.  
  263.  
  264.  
  265.  
  266.                                     - 5 -
  267. 3.1.  <CR>
  268.  
  269. Entering a carriage return (empty line) while in command  mode  puts  you  in
  270. converse  mode  with the current session. If there is no current session, Nos
  271. remains in command mode and reissues the net> prompt.
  272.  
  273. 3.2.  !
  274.  
  275. An alias for the shell command.
  276.  
  277. 3.3.  #
  278.  
  279. Commands starting with the hash mark (#) are ignored. This is  mainly  useful
  280. for comments in the autoexec.nos file.
  281.  
  282. 3.4.  abort [<session #>]
  283.  
  284. Abort a FTP get, put or dir operation in progress. If issued without an argu-
  285. ment,  the  current  session is aborted. (This command works only on FTP ses-
  286. sions.) When receiving a file, abort simply resets the data  connection;  the
  287. next  incoming  data packet will generate a TCP RST (reset) response to clear
  288. the remote server.  When sending a file, abort sends a premature end-of-file.
  289. Note  that  in  both cases abort will leave a partial copy of the file on the
  290. destination machine, which must be removed manually if it is unwanted.
  291.  
  292. 3.5.  arp
  293.  
  294. Display the Address Resolution Protocol table that maps IP addresses to their
  295. subnet  (link) addresses on subnetworks capable of broadcasting.  For each IP
  296. address entry the subnet type (eg. Ethernet, AX.25), subnet address and  time
  297. to  expiration is shown. If the link address is currently unknown, the number
  298. of IP datagrams awaiting resolution is also shown.
  299.  
  300. 3.5.1.  arp add <hostid> ether |  ax25  |  netrom  |  arcnet  <ether_addr>  |
  301. <ax25_addr>
  302.  
  303. Add a permanent entry to  the  table.  It  will  not  time  out  as  will  an
  304. automatically-created entry, but must be removed with the arp drop command.
  305.  
  306. 3.5.2.  arp drop <hostid> ether | ax25 | netrom | arcnet
  307.  
  308. Delete a permanent entry from the arp table.
  309.  
  310. 3.5.3.  arp flush
  311.  
  312. Drop all automatically-created entries in the ARP  table;  permanent  entries
  313. are not affected.
  314.  
  315. 3.5.4.  arp publish <hostid> ether | ax25 | netrom |  arcnet  <ether_addr>  |
  316. <ax25_addr>
  317.  
  318. This command is similar to the arp add command,  but  the  system  will  also
  319. respond  to  any  ARP request it sees on the network that seeks the specified
  320. address.  (Use this feature with great care.)
  321.  
  322. 3.6.  autoroute <yes|no>
  323.  
  324. Displays or sets the IP autorouting option. When set all AX25 IP packets  are
  325. analysed and remembered.
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.                                     - 6 -
  333. 3.7.  asystat
  334.  
  335. Display statistics on attached asynchronous communications  interfaces  (8250
  336. or  16550A),  if  any. The display for each port consists of three lines. The
  337. first line gives the port label and the configuration flags;  these  indicate
  338. whether  the port is a 16550A chip, the trigger character if any, whether CTS
  339. flow control is enabled,  whether  RLSD  (carrier  detect)  line  control  is
  340. enabled,  and the speed in bits per second.  (Receiving the trigger character
  341. causes the driver to signal upper layer software that data is  ready;  it  is
  342. automatically  set  to  the appropriate frame end character for SLIP, PPP and
  343. NRS lines.)
  344.  
  345. The second line of the status display shows receiver (RX) event  counts:  the
  346. total  number  of  receive interrupts, received characters, receiver overruns
  347. (lost characters) and the receiver high water mark.  The high water  mark  is
  348. the  maximum  number  of characters ever read from the device during a single
  349. interrupt. This is useful for monitoring system interrupt latency margins  as
  350. it  shows how close the port hardware has come to overflowing due to the ina-
  351. bility of the CPU to respond to a receiver interrupt in time. 8250 chips have
  352. no  FIFO,  so  the  high  water  mark cannot go higher than 2 before overruns
  353. occur. The 16550A chip,  however,  has  a  16-byte  receive  FIFO  which  the
  354. software  programs  to  interrupt  the CPU when the FIFO is one-quarter full.
  355. The high water mark should typically be 4 or 5 when a 16550A is used;  higher
  356. values  indicate  that  the  CPU  has at least once been slow to respond to a
  357. receiver interrupt.
  358.  
  359. When the 16550A is used, a count of FIFO timeouts is also displayed on the RX
  360. status line. These are generated automatically by the 16550A when three char-
  361. acter intervals go by with more than 0 but less  than  4  characters  in  the
  362. FIFO. Since the characters that make up a SLIP or NRS frame are normally sent
  363. at full line speed, this count will usually be a lower bound on the number of
  364. frames  received  on the port, as only the last fragment of a frame generally
  365. results in a timeout (and then only when the frame is not  a  multiple  of  4
  366. bytes long.)
  367.  
  368. Finally, the software fifo overruns and high water mark are displayed.  These
  369. indicate  whether  the  <bufsize> parameter on the attach command needs to be
  370. adjusted (see the Attach Commands chapter).
  371.  
  372. The third line shows transmit (TX) statistics, including  a  total  count  of
  373. transmit interrupts, transmitted characters, the length of the transmit queue
  374. in bytes, the number of status interrupts, and the number of  THRE  timeouts.
  375. The  status interrupt count will be zero unless CTS flow control or RLSD line
  376. control has been enabled.  The THRE timeout is a  stopgap  measure  to  catch
  377. lost  transmit  interrupts,  which  seem  to  happen  when  there is a lot of
  378. activity (ideally, this will be zero).
  379.  
  380. 3.8.  attach <hw type> ...
  381.  
  382. Configure and attach a hardware interface to  the  system.  The  details  are
  383. highly  interface  dependent and dependent on configuration flags in the file
  384. config.h when the software is build. It can be that not  all  drivers  listed
  385. below  will  be included in your copy of Nos.  Detailed instructions for each
  386. driver are in the Attach Commands chapter.  Drivers  are  available  for  the
  387. following hardware types:
  388.  
  389. 3.8.1.  attach 3c500
  390.  
  391. Don't use this one anymore. Use the packet driver  instead.  This  driver  is
  392. obsolete and not supported anymore.
  393.  
  394.  
  395.  
  396.  
  397.  
  398.                                     - 7 -
  399. 3.8.2.  attach asy
  400.  
  401. Standard PC asynchronous interface (com port)  using  the  National  8250  or
  402. 16450 or 16550A chip or compatible equivalent.
  403.  
  404. 3.8.3.  attach axip
  405.  
  406. A "wormhole" ax25 digipeater device.
  407.  
  408. 3.8.4.  attach arcnet
  409.  
  410. A ARCnet driver via the PACKET driver.
  411.  
  412. 3.8.5.  attach drsi
  413.  
  414. N6TTO driver for the DRSI PCPA 8530 card.
  415.  
  416. 3.8.6.  attach eagle
  417.  
  418. WA3CVG/NG6Q driver for the Eagle Computer card (Zilog 8530).
  419.  
  420. 3.8.7.  attach hapn
  421.  
  422. KE3Z driver for the Hamilton Amateur  Packet  Network  adapter  board  (Intel
  423. 8273).
  424.  
  425. 3.8.8.  attach hs
  426.  
  427. Special "high speed" 8530 driver for the WA4DSY 56kb/s modem.
  428.  
  429. 3.8.9.  attach kiss
  430.  
  431. This enables a multiplexed tnc type to be used for second channel. It is used
  432. to  connect  a second port to an already attached asy interface. It will copy
  433. most of the params of it's parent port.
  434.  
  435. 3.8.10.  attach netrom
  436.  
  437. This is a psuedo interface to enable NET/ROM operations.
  438.  
  439. 3.8.11.  attach packet
  440.  
  441. Driver for use with  separate  software  "packet  drivers"  meeting  the  FTP
  442. Software, Inc, Software Packet Driver specification.
  443.  
  444. 3.8.12.  attach pc100
  445.  
  446. Driver for the PACCOMM PC-100 (Zilog 8530) card.
  447.  
  448. 3.8.13.  attach pi
  449.  
  450. Dma driven 8530 scc board from VE3IFB.
  451.  
  452. 3.8.14.  attach scc
  453.  
  454. PE1CHL driver for generic 8530 cards.
  455.  
  456. 3.8.15.  attach slfp
  457.  
  458. Serial Line Faming Protocol packet driver.
  459.  
  460.  
  461.  
  462.  
  463.  
  464.                                     - 8 -
  465. An easy way to obtain a summary of the parameters required for a given device
  466. is  to  issue  a partial attach command (eg. attach packet.)  This produces a
  467. usage message giving the complete command format.
  468.  
  469. 3.9.  attended [off | on]
  470.  
  471. Displays or sets the global "I am present" flag in Nos. This flag is used  in
  472. the welcome header by incoming ttylink connections.
  473.  
  474. 3.10.  ax25 <subcommand>
  475.  
  476. These commands are for Ax25 interfaces.
  477.  
  478. 3.10.1.  ax25 bc <interface>
  479.  
  480. The bc command enables broadcasts via interface interface.
  481.  
  482. 3.10.2.  ax25 bcinterval [<seconds>]
  483.  
  484. The bcinterval displays or sets the time in seconds  between  bc  broadcasts.
  485. On display both the interval and the countdown values are shown.
  486.  
  487. 3.10.3.  ax25 blimit [<limit>]
  488.  
  489. Display or set the AX25 retransmission backoff limit. Normally  each  succes-
  490. sive AX25 retransmission is delayed by twice the value of the previous inter-
  491. val; this is called binary exponential backoff.  When the backoff reaches the
  492. blimit  setting  it  is held at that value, which defaults to 30.  To prevent
  493. the possibility of "congestive collapse" on a loaded channel,  blimit  should
  494. be  set at least as high as the number of stations sharing the channel.  Note
  495. that this is applicable only on actual AX25 connections; UI frames will never
  496. be retransmitted by the AX25 layer.
  497.  
  498. 3.10.4.  ax25 bctext ["broadcast text"]
  499.  
  500. The bctext command displays or sets the text to be send  for  broadcast  mes-
  501. sages send out every bcinterval seconds.
  502.  
  503. 3.10.5.  ax25 digipeat [on | off]
  504.  
  505. Display or set the digipeater enable flag. If the axip interface is used this
  506. flag MUST be on , otherwise the digipeat function will not work at all.
  507.  
  508. 3.10.6.  ax25 filter <0 | 1 | 2 | 3>
  509.  
  510. The filter commands enables or disables the logging in  the  heard  lists  of
  511. source  and  destination  ax25_addresses. This is a bitwise or function where
  512. the 01 value is for source stations and the 02  value  for  destination  sta-
  513. tions. When the bit is off , logging is enabled, when on disabeled.
  514.  
  515. 3.10.7.  ax25 flush
  516.  
  517. Clear the AX.25 "heard" list (see ax25 heard).
  518.  
  519. 3.10.8.  ax25 heard [<interface>]
  520.  
  521. Display the AX.25 "heard" list. For each interface that is configured to  use
  522. AX.25,  a  list  of all ax25_addresses heard through that interface is shown,
  523. along with a count of the number of packets heard from each station  and  the
  524. interval, in hr:min:sec format, since each station was last heard.  The local
  525. station always appears first  in  the  listing;  the  packet  count  actually
  526.  
  527.  
  528.  
  529.  
  530.                                     - 9 -
  531. reflects the number of packets transmitted. This entry is always present even
  532. if no packets have been sent. If interface is given, only the heard list  for
  533. that  interface  is  displayed.   Note that logging of heard stations is con-
  534. trolled with the ax25 filter command.
  535.  
  536. 3.10.9.  ax25 hearddest [<interface>]
  537.  
  538. Displays the destination list, i.e. the addressed to stations.  Next  to  the
  539. time  the last transmission to that station the time that station replied (if
  540. heard) is displayed. This gives a good reference  to  see  if  a  station  is
  541. reachable and responding.
  542.  
  543. 3.10.10.  ax25 irtt [<milliseconds>]
  544.  
  545. Display or set the initial value of smoothed round trip time to be used  when
  546. a  new  AX25 connection is created. The value is in milliseconds.  The actual
  547. round trip time will be learned by measurement once the connection  has  been
  548. established.
  549.  
  550. 3.10.11.  ax25 kick <axcb>
  551.  
  552. Force a retransmission on the specified AX.25  control  block.   The  control
  553. block address can be found with the ax25 status command.
  554.  
  555. 3.10.12.  ax25 maxframe [<count>]
  556.  
  557. Establish the maximum number of frames that will be allowed to remain  unack-
  558. nowledged at one time on new AX.25 connections. This number cannot be greater
  559. than 7.  Without count it will display the current  setting.  Note  that  the
  560. maximum outstaning frame count only works with virtual connections. UI frames
  561. are not affected.
  562.  
  563. 3.10.13.  ax25 mycall [<ax25_addr>]
  564.  
  565. Display or set the default local AX.25 address.  The standard format is used,
  566. (eg.  KA9Q-0 or WB6RQN-5).  This command must be given before any attach com-
  567. mands using AX.25 mode are given.
  568.  
  569. 3.10.14.  ax25 paclen [<size>]
  570.  
  571. Limit the size of I-fields on new AX.25  connections.   If  IP  datagrams  or
  572. fragments  larger than this are transmitted, they will be transparently frag-
  573. mented at the AX.25 level, sent as a series of I frames, and reassembled back
  574. into a complete IP datagram or fragment at the other end of the link. To have
  575. any effect on IP datagrams, this parameter should be less than  or  equal  to
  576. the MTU of the associated interface.
  577.  
  578. 3.10.15.  ax25 pthresh [<size>]
  579.  
  580. Display or set the poll threshold to be used for new AX.25 Version 2  connec-
  581. tions.   The  poll  threshold controls retransmission behavior as follows. If
  582. the oldest unacknowledged I-frame size is less than the  poll  threshold,  it
  583. will  be  sent  with the poll (P) bit set if a timeout occurs.  If the oldest
  584. unacked I-frame size is equal to or greater than the threshold, then a RR  or
  585. RNR  frame,  as  appropriate, with the poll bit set will be sent if a timeout
  586. occurs.
  587.  
  588. The idea behind the poll threshold is that the extra time needed  to  send  a
  589. "small"  I-frame  instead of a supervisory frame when polling after a timeout
  590. is small, and since there's a good chance the I-frame will have  to  be  sent
  591. anyway  (i.e.,  if it were lost previously) then you might as well send it as
  592.  
  593.  
  594.  
  595.  
  596.                                    - 10 -
  597. the poll. But if the I-frame is  large,  send  a  supervisory  (RR/RNR)  poll
  598. instead  to  determine  first  if retransmitting the oldest unacknowledged I-
  599. frame is necessary; the timeout might have been caused by a lost acknowledge-
  600. ment.   This  is  obviously a tradeoff, so experiment with the poll threshold
  601. setting. The default is 128 bytes, one half the default value of paclen.
  602.  
  603. 3.10.16.  ax25 reset <axcb>
  604.  
  605. Delete the AX.25 connection control block at the specified address.
  606.  
  607. 3.10.17.  ax25 retry [<count>]
  608.  
  609. Limit the number of successive unsuccessful retransmission  attempts  on  new
  610. AX.25  connections.  If  this  limit  is  exceeded,  link re-establishment is
  611. attempted. If this fails retry times, then the connection  is  abandoned  and
  612. all queued data is deleted.
  613.  
  614. 3.10.18.  ax25 route
  615.  
  616. Display the AX.25 routing table that specifies the digipeaters to be used  in
  617. reaching a given station.
  618.  
  619. 3.10.18.1.  ax25 route add <target> [digis ... ]
  620.  
  621. Add an entry to the AX.25 routing table.  An automatic ax25 route add is exe-
  622. cuted  if  digipeaters are specified in an AX25 connect command, or if a con-
  623. nection is received from a remote station  via  digipeaters.  Such  automatic
  624. routing table entries won't override locally created entries, however.
  625.  
  626. 3.10.18.2.  ax25 route drop <target>
  627.  
  628. Drop an entry for target from the AX.25 routing table.
  629.  
  630. 3.10.18.3.  ax25 route mode <target> [vc | datagram | interface]
  631.  
  632. Sets the mode to vc | datagram |  interface  for  target.  Interface  is  the
  633. default for that interface. Vc is a virtual circuit (ax25 connected mode) and
  634. datagram is unconnected mode, (AX25 UI frames).
  635.  
  636. 3.10.19.  ax25 status [<axcb>]
  637.  
  638. Without an argument, display a one-line summary of each AX.25 control  block.
  639. If  the  address  of a particular control block is specified, the contents of
  640. that control block are dumped in more detail. Note that the send queue  units
  641. are frames, while the receive queue units are bytes.
  642.  
  643. 3.10.20.  ax25 t3 [<milliseconds>]
  644.  
  645. Display or set the AX.25 idle "keep alive" timer. Value is in milliseconds.
  646.  
  647. 3.10.21.  ax25 t4 [<seconds>]
  648.  
  649. Display or set the AX.25 Link "redundancy" timer. Value is in seconds.   When
  650. no exchange has been had during this time the link is reset and closed.
  651.  
  652. 3.10.22.  ax25 timertype [l | e | o]
  653.  
  654. Sets or displays the type of timer  used  for  retransmission  and  recovery:
  655. linear, exponential or original.
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.                                    - 11 -
  663. 3.10.23.  ax25 version [1 | 2]
  664.  
  665. Display or set the version of the AX.25 protocol to attempt  to  use  on  new
  666. connections.  The  default is 1 (the version that does not use the poll/final
  667. bits).
  668.  
  669. 3.10.24.  ax25 window [<size>]
  670.  
  671. Set the number of bytes that can be pending on an AX.25 receive queue  beyond
  672. which  I  frames  will  be  answered with RNR (Receiver Not Ready) responses.
  673. This presently applies only to suspended interactive  AX.25  sessions,  since
  674. incoming  I-frames  containing  network (IP, NET/ROM) packets are always pro-
  675. cessed immediately and are not placed on the receive queue.  However, when an
  676. AX.25  connection carries both interactive and network packet traffic, an RNR
  677. generated because of backlogged interactive traffic will  also  stop  network
  678. packet traffic from being sent.
  679.  
  680. 3.11.  bbs
  681.  
  682. Enter the local bbs port (same as a telnet session to your own station).
  683.  Current commands are:
  684.  help      ? <command>
  685.  area      a [<area>]
  686.  bye       b
  687.  chat      c
  688.  download  d <filename>
  689.            du <filename>         (for uuencode bin file)
  690.  escape    e [<escape char.]
  691.  finger    f [<user>]
  692.  gateway   g <interface> <ax25_addr> [[<ax25_addr>] .... ]
  693.            g <node>
  694.  help      h [<command>]
  695.  info      i
  696.  heard     j
  697.  kill      k <msg number>
  698.  list      l [<msg number>]
  699.  nodes     n <node>
  700.  read      r [<msg number>]
  701.  send      s[f] <usename[@hostid] [<from_addr>] [$bul_id]
  702.  send repl sr [<mgs number>]
  703.  telnet    t <hostid>
  704.  users     u
  705.  verbose   v <n>
  706.  what      w [<directory>]
  707.  expert    x
  708.  zap       z <filename>
  709.  sysop     @
  710.  
  711. 3.12.  bootp <subcommand>
  712.  
  713. This is a bootp server / client, included into Nos. It is picked up from  the
  714. University  of  Michigan in Ann Arbor. It is included into the sources of Nos
  715. but is not used nor tested by me. (PA0GRI) Its usability  is  fague  but  the
  716. discussions  on  tcp-group drove me to include this for possible use of reus-
  717. able addresses.
  718.  
  719. 3.12.1.  bootp start
  720.  
  721. Starts the bootp server.
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.                                    - 12 -
  729. 3.12.2.  bootp stop
  730.  
  731. Stops the bootp server.
  732.  
  733. 3.12.3.  bootp dns [<ipaddr>]
  734.  
  735. Display or set the list of domain name servers for bootp.
  736.  
  737. 3.12.4.  bootp dyip [<iface> | <iface> <ipaddr1> <ipaddr2> | <iface> off]
  738.  
  739. Display or set the interface address range. The range is between ipaddr1  and
  740. ipaddr2, both in dot notation.
  741.  
  742. 3.12.5.  bootp host [<hostaddr> <hardware type>  <hardware  addr>  <ip  addr>
  743. [boot file]]
  744.  
  745. Display or activate a bootp process. Hardware type is netrom,  ether,  macap-
  746. pletalk  or ax25. Hardware addr is the interface name. Ip addr must be in dot
  747. notation.
  748.  
  749. 3.12.6.  bootp rmhost <ipaddr>
  750.  
  751. Delete ipaddr from the host table.
  752.  
  753. 3.12.7.  bootp homedir [<directory> | default]
  754.  
  755. Display or set the directory where the bootp files reside. The default direc-
  756. tory is bpfiles.
  757.  
  758. 3.12.8.  bootp defaultfile [<bootfile> | default]
  759.  
  760. Display or set the file name of the bootp file. The default is boot.
  761.  
  762. 3.12.9.  bootp logfile [<filename> | default] [on | off]
  763.  
  764. Starts or stops the logging of bootp requests to filename or the default file
  765. name bootplog.
  766.  
  767. 3.12.10.  bootp logscreen [on | off]
  768.  
  769. Enables or disables the logging of bootp to the screen.
  770.  
  771. 3.13.  bootpd
  772.  
  773. This starts the server daemon for bootp.
  774.  
  775. 3.14.  cd [<dirname>]
  776.  
  777. Change the current working directory, and display the new  setting.   Without
  778. an  argument,  cd  simply displays the current directory without change.  The
  779. pwd command is an alias for cd.
  780.  
  781. 3.15.  close [<session>]
  782.  
  783. Close the specified session; without an argument, close the current  session.
  784. On an AX.25 session, this command initiates a disconnect.  On a FTP or Telnet
  785. session, this command sends a FIN (i.e., initiates a close) on the  session's
  786. TCP  connection.   This is an alternative to asking the remote server to ini-
  787. tiate a close (QUIT to FTP, or the logout command appropriate for the  remote
  788. system  in  the case of Telnet).  When either FTP or Telnet sees the incoming
  789. half of a TCP connection close, it  automatically  responds  by  closing  the
  790.  
  791.  
  792.  
  793.  
  794.                                    - 13 -
  795. outgoing  half of the connection.  Close is more graceful than the reset com-
  796. mand, in that it is less likely to leave the  remote  TCP  in  a  "half-open"
  797. state.
  798.  
  799. 3.16.  comm <interface> <text-string>
  800.  
  801. The comm command sends text-string via interface.  This can be used  to  send
  802. straight  text  to an tnc still in TAPR command mode during Nos startup. Note
  803. that to preserve spaces tabs etc. to include the string between double  quote
  804. characters. Aka: comm ax1 "start kiss"
  805.  
  806. 3.17.  connect <iface> <ax25_addr> [<digipeater> ... ]
  807.  
  808. Initiate a "vanilla" AX.25 session  to  the  specified  ax25_addr  using  the
  809. specified interface. Data sent on this session goes out in conventional AX.25
  810. packets with no upper layer protocol.   The  de-facto  presentation  standard
  811. format  is  used, in that each packet holds one line of text, terminated by a
  812. carriage return.  A single AX.25 connection  may  be  used  for  terminal-to-
  813. terminal,  IP  and  NET/ROM traffic.  The three types of data being automati-
  814. cally separated by their AX.25 Level 3 Protocol IDs.
  815.  
  816. Up to 7 optional digipeaters may be given; note that  the  word  via  is  NOT
  817. needed.  If  digipeaters  are  specified, they are automatically added to the
  818. AX25 routing table as though the ax25 route add command had been given before
  819. issuing the connect command.
  820.  
  821. 3.18.  delete <filename>
  822.  
  823. The filename is removed from the file system.
  824.  
  825. 3.19.  detach <iface>
  826.  
  827. Detach a previously attached interface from the system. All IP routing  table
  828. entries referring to this interface are deleted, and forwarding references by
  829. any other interface to this interface are removed.
  830.  
  831. 3.20.  dialer <iface> [<file> [<seconds> [<pings> [<hostid>]]]]
  832.  
  833. Setup an autodialer session for the interface.   Whenever  the  interface  is
  834. idle  for  the  interval in <seconds>, the autodialer will ping the <hostid>.
  835. If there is no answer after <pings> attempts, the autodialer will execute the
  836. special commands contained in the <dialer-file>.
  837.  
  838. If the interval in <seconds> is zero, a previous dialer command process  will
  839. be removed.  If the number of <pings> is zero, the <dialer-file> will be exe-
  840. cuted without pinging the <hostid>.
  841.  
  842. The file may have any valid name, and must be located  in  the  configuration
  843. root  directory  (see  the Installion section).  The commands in the file are
  844. described in the Dialer Subcommands chapter.
  845.  Commands in file are:
  846.  
  847. 3.20.1.  control <up | down>
  848.  
  849.  
  850. 3.20.2.  send <string> [<milliseconds>]
  851.  
  852. Sends string to the interface. If milliseconds is given, inter character tim-
  853. ing is milliseconds milliseconds.
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.                                    - 14 -
  861. 3.20.3.  speed <bps>
  862.  
  863. Displays or sets the current interface speed to bps baud.
  864.  
  865. 3.20.4.  status <up | down>
  866.  
  867.  
  868. 3.20.5.  wait <milliseconds> [<string> [speed]]
  869.  
  870. Wait the amount of milliseconds. If string is given, incoming characters from
  871. the  interface  are compared with string. If an compare is found and speed is
  872. the string speed, the next numbers read from the interface is  the  new  bau-
  873. drate  used.  This  works  like HAYES response CONNECT 9600. The wait command
  874. could habe been "wait 10000 CONNECT speed".  This waits 10  seconds  for  the
  875. CONNECT response from the modem.
  876.  
  877. 3.21.  dir [<dirname>]
  878.  
  879. List the contents of the specified directory on the console. If  no  argument
  880. is  given,  the  current directory is listed. Note that this command works by
  881. first listing the directory into a temporary file, and then creating  a  more
  882. session to display it. After this completes, the temporary file is deleted.
  883.  
  884. 3.22.  disconnect [<session>]
  885.  
  886. An alias for the close command (for the benefit of AX.25 users).
  887.  
  888. 3.23.  domain <subcommand>
  889.  
  890. The domain commands control and show the working  of  the  name  to  internet
  891. address  mapping software. NOS currently only has a client with a simple file
  892. reading local server. A real server is needed to service  the  community  for
  893. their growing needs.
  894.  
  895. 3.23.1.  domain addserver <hostid>
  896.  
  897. Add a domain name server to the list of name servers.  Note that,  when  this
  898. command is given in the autoexec.nos file the ip address command should given
  899. be before this command is used.  (If not, Nos will not kow how to resolve the
  900. address,  and  an answer will never be recognized, or worse: just plain hangs
  901. the system.)
  902.  
  903. 3.23.2.  domain cache <subcommand>
  904.  
  905. Following commands work on the domain cache. These are resource records  (see
  906. RFC 1033/1034) held in memory.
  907.  
  908. 3.23.2.1.  domain cache clean [<yes | no>]
  909.  
  910. Displays or sets the discard of expired  resource  records.  Expired  records
  911. have  their timeout value decremented to zero. Normaly resource records get a
  912. default timeout value of 1800 seconds. After this time  they  are  considered
  913. "old"  and  if  referenced  again the domain name resolver should be enquired
  914. again.  When clean is off (the default), expired records will be retained; if
  915. no replacement can be obtained from another domain name server, these records
  916. will continue to be used.
  917.  
  918. When clean is on, expired records will be removed from the file whenever  any
  919. new record is added to the file.
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.                                    - 15 -
  927. 3.23.2.2.  domain cache list
  928.  
  929. This command shows the current content of the in memory  cache  for  resource
  930. records.
  931.  
  932. 3.23.2.3.  domain cache size [<size>]
  933.  
  934. Display or set the nominal maximum size  of  the  local  memory  cache.   The
  935. default is 20.
  936.  
  937. (Note: The cache may be temporarily larger when waiting for new records to be
  938. written to the domain.txt file.)
  939.  
  940. 3.23.2.4.  domain cache wait [<seconds>]
  941.  
  942. Display or set the interval in seconds to wait for additional activity before
  943. updating the domain.txt file.  The default is 300 seconds (5 minutes).
  944.  
  945. 3.23.3.  domain dropserver <hostid>
  946.  
  947. Remove a domain name server from the list of name servers.   You  are  warned
  948. when you delete the last name server.
  949.  
  950. 3.23.4.  domain listservers
  951.  
  952. List the currently configured domain name servers, along with  statistics  on
  953. how  many  queries  and  replies  have been exchanged with each one, response
  954. times, etc.
  955.  
  956. 3.23.5.  domain maxwait [<timeout>]
  957.  
  958. This sets a timeout value (1 to 255  seconds)  to  a  query  or  domain  name
  959. server.   This is not set for a already defined server but will be used for a
  960. newly defined name server. Also the value is used for domain nslookups.  Note
  961. that  name  servers  can  have (PC based) trouble finding records in an large
  962. database. The default is set to 30 seconds.
  963.  
  964. 3.23.6.  domain retry [<retries>]
  965.  
  966. The retry value (number) limits the number of  queries  send  out  to  remote
  967. domain   name   resolvers   before  giving  up  and  telling  you  that  host
  968. xyzzy.ampr.org does not exist. The total time lost with a query is retries  *
  969. timeout * number of domain servers defined.
  970.  
  971. 3.23.7.  domain suffix [<domain suffix> | none]
  972.  
  973. Display or specify the default domain name suffix to be appended  to  a  host
  974. name  when  it  contains  no  periods.  For  example, if the suffix is set to
  975. ampr.org. and the user enters telnet ka9q, the domain resolver  will  attempt
  976. to  find  ka9q.ampr.org..  If the host name being sought contains one or more
  977. periods, however, the default suffix is NOT applied if the last part  of  the
  978. name is less than 5 characters and contains only letters; e.g.,
  979.  telnet foo.bar would NOT be turned into foo.bar.ampr.org..
  980.  telnet foo.ka9q will be turned into foo.ka9q.ampr.org..  Note that a  trail-
  981. ing  dot  (.)  is  required for the suffix.  If the suffix is the string none
  982. (without trailing period) the current suffix is cleared and forgotten.
  983.  
  984. 3.23.8.  domain trace [on | off]
  985.  
  986. Display or set the flag controlling the tracing of domain server requests and
  987. responses.  Trace messages will be seen only if a domain name being sought is
  988.  
  989.  
  990.  
  991.  
  992.                                    - 16 -
  993. not found in the local cache file, domain.txt.
  994.  
  995. 3.23.9.  domain translate [off | on]
  996.  
  997. Display or set the flag that controls the translation of  ip  adress  in  dot
  998. notation  into  symbolic  names. The translation process makes heavely use of
  999. reverse domain name lookups. Do not set this flag unless you have a good  and
  1000. fast connection to a domain name server or have a fast domain.txt handler and
  1001. domain.txt contains all IN-ADDR.ARPA. records you ever wanted.
  1002.  
  1003. 3.23.10.  domain verbose [off | on]
  1004.  
  1005. Display or set the flag controlling the return of a full name (true) or  only
  1006. the first name (dot delimiter) (false). This is for IP address to name trans-
  1007. lation only.
  1008.  
  1009. 3.24.  drsistat
  1010.  
  1011. Shows the statistics for all configured drsi boards.
  1012.  
  1013. 3.25.  dump <hex-address | .> [decimal-range]
  1014.  
  1015. The dump command shows memory in hex and ascii. Hex-address is a 32 bit value
  1016. for  a  PC  split into page address and page offset. A splitting colon is not
  1017. used nor accepted. If decimal-range is not given , 128 bytes  are  displayed.
  1018. dump . displayes memory starting at the end of a previous dump command.
  1019.  
  1020. 3.26.  echo [accept | refuse]
  1021.  
  1022. Display or set the flag controlling client Telnet's response to a remote WILL
  1023. ECHO offer.
  1024.  
  1025. The Telnet presentation protocol specifies that in the  absence  of  a  nego-
  1026. tiated  agreement  to the contrary, neither end echoes data received from the
  1027. other.  In this mode, a Telnet client session echoes keyboard  input  locally
  1028. and  nothing  is  actually  sent until a carriage return is typed. Local line
  1029. editing is also performed: backspace deletes the last character typed,  while
  1030. control-U deletes the entire line.
  1031.  
  1032. When communicating from keyboard to keyboard the standard local echo mode  is
  1033. used, so the setting of this parameter has no effect. However, many timeshar-
  1034. ing systems (eg. UNIX) prefer to do their own echoing of typed input.   (This
  1035. makes  screen  editors  work  right, among other things). Such systems send a
  1036. Telnet WILL ECHO offer immediately upon receiving an incoming Telnet  connec-
  1037. tion  request.  If  echo  accept  is  in effect, a client Telnet session will
  1038. automatically return a DO ECHO response. In  this  mode,  local  echoing  and
  1039. editing is turned off and each key stroke is sent immediately (subject to the
  1040. Nagle tinygram algorithm in TCP).  While this mode is  just  fine  across  an
  1041. Ethernet, it is clearly inefficient and painful across slow paths like packet
  1042. radio channels. Specifying echo refuse causes an incoming WILL ECHO offer  to
  1043. be  answered with a DONT ECHO; the client Telnet session remains in the local
  1044. echo mode.  Sessions already in the remote echo mode are  unaffected.  (Note:
  1045. Berkeley  Unix  has  a  bug  in  that it will still echo input even after the
  1046. client has refused the WILL ECHO offer. To get around this problem, enter the
  1047. stty -echo command to the shell once you have logged in.)
  1048.  
  1049. 3.27.  eol [unix | standard]
  1050.  
  1051. Display or set Telnet's end-of-line behavior when in remote  echo  mode.   In
  1052. standard  mode,  each  key  is sent as-is. In unix mode, carriage returns are
  1053. translated to line feeds.  This  command  is  not  necessary  with  all  UNIX
  1054.  
  1055.  
  1056.  
  1057.  
  1058.                                    - 17 -
  1059. systems;  use it only when you find that a particular system responds to line
  1060. feeds but not carriage returns.  Only SunOS release 3.2 seems to exhibit this
  1061. behavior; later releases are fixed.
  1062.  
  1063. 3.28.  escape [<char>]
  1064.  
  1065. Display or set the current command-mode escape character in hex.  On the  PC,
  1066. the  escape  character  is default ^]. The alternate escape key is F10 unless
  1067. F10 is redefined with fkey.
  1068.  
  1069.  
  1070.  
  1071.  
  1072.  
  1073.  
  1074.  
  1075.  
  1076.  
  1077.  
  1078.  
  1079.  
  1080.  
  1081.  
  1082.  
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.                                    - 18 -
  1125. 3.29.  etherstat
  1126.  
  1127. Display 3-Com Ethernet controller statistics (if configured).
  1128.  
  1129. 3.30.  exit
  1130.  
  1131. Exit the nos program and return to MS-DOS.
  1132.  
  1133. 3.31.  finger <user@hostid> | <@hostid>
  1134.  
  1135. Issue a network finger request for user user at host hostid. This  creates  a
  1136. client  session  which  may  be interrupted, resumed, reset, etc, just like a
  1137. Telnet client session. If only @hostid is given, all users on that  host  are
  1138. identified.
  1139.  
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.                                    - 19 -
  1191. 3.32.  fkey [<number> [<string>]]
  1192.  
  1193. Fkey displays or sets values for the programmable keys on  the  PC  keyboard.
  1194. fkey  alone  gives  a  display  of all remapable keys and their number.  fkey
  1195. number displays the current value for that key.  fkey number  string  assigns
  1196. string  to that key. Control characters can be created by prefixing then with
  1197. an ^ character. A cr is ^M.  To insert an ^ in the string 2 ^'s next to  each
  1198. other are needed.  Following is the map of keys and their number. F1 is func-
  1199. tion key 1.  Sf1 is Shift function key 1. Cf1 is Control function key 1.  Af1
  1200. is Alt function key 1. Etc. The right most row is the numeric keypad.
  1201.  
  1202.     key number   key  number   key  number   key  number  key   number
  1203.     f1   59      sf1   84      cf1   94      af1  104     pgup   73
  1204.     f2   60      sf2   85      cf2   95      af2  105     pgdn   81
  1205.     f3   61      sf3   86      cf3   96      af3  106     home   71
  1206.     f4   62      sf4   87      cf4   97      af4  107     end    79
  1207.     f5   63      sf5   88      cf5   98      af5  108     arup   72
  1208.     f6   64      sf6   89      cf6   99      af6  109     ardn   80
  1209.     f7   65      sf7   90      cf7  100      af7  110     ar l   75
  1210.     f8   66      sf8   91      cf8  101      af8  111     ar r   77
  1211.     f9   67      sf9   92      cf9  102      af9  112     ins    82
  1212.     f10  68      sf10  93      cf10 103      af10 113     del    83
  1213. The mapping is taken to  look  like  a  vt100  /  ansi  keyboard.   Currently
  1214. assigned value strings for following keys:
  1215.     number  string     key
  1216.     59     " 33OP"   /* F1 */
  1217.     60     " 33OQ"   /* F2 */
  1218.     61     " 33OR"   /* F3 */
  1219.     62     " 33OS"   /* F4 */
  1220.     71     " 10"     /* home*/
  1221.     72     " 33[A"   /* up arrow*/
  1222.     73     " 25"     /* pgup */
  1223.     75     " 33[D"   /* left arrow */
  1224.     77     " 33[C"   /* right arrow */
  1225.     79     " 05"     /* end */
  1226.     80     " 33[B"   /* down arrow */
  1227.     81     " 12"     /* pgdn */
  1228.     82     " 01"     /* ins */
  1229.     83     " 177"    /* del */
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.                                    - 20 -
  1257. 3.33.  ftp <hostid>
  1258.  
  1259. Open an FTP control channel to the specified remote host and  enter  converse
  1260. mode  on  the  new  session.   Responses from the remote server are displayed
  1261. directly on the screen. See theFTP Subcommands chapter  for  descriptions  of
  1262. the commands available in a FTP session.
  1263.  
  1264. 3.34.  ftype [ascii | binary | image | logical <size>]
  1265.  
  1266. This command displays or sets the default start file mode (ascii  or  binary)
  1267. for  ftp  transfers.  If  ftype binary or image is given the next ftp session
  1268. started will be in binary type. No binary command is needed once the  session
  1269. is started. In case of logical, the "word" size is set to size.
  1270.  
  1271. 3.35.  help
  1272.  
  1273. Display a brief summary of top-level commands.
  1274.  
  1275. 3.36.  hop <subcommands>
  1276.  
  1277. These commands are used to test the connectivity of the network.
  1278.  
  1279. 3.36.1.  hop check <hostid>
  1280.  
  1281. Initiate a hopcheck session to the specified host. This uses a series of  UDP
  1282. "probe"  packets  with  increasing IP TTL fields to determine the sequence of
  1283. gateways in the path to the specified destination. This function is patterned
  1284. after the UNIX traceroute facility.
  1285.  
  1286. ICMP message tracing should be turned off before  this  command  is  executed
  1287. (see the icmp trace command).
  1288.  
  1289. 3.36.2.  hop maxttl [<hops>]
  1290.  
  1291. Display or set the maximum TTL value to be used in hop check sessions.   This
  1292. effectively bounds the radius of the search.
  1293.  
  1294. 3.36.3.  hop maxwait [<seconds>]
  1295.  
  1296. Display or set the maximum interval, in seconds, that a hopcheck session will
  1297. wait for responses at each stage of the trace. The default is 5 seconds.
  1298.  
  1299. 3.36.4.  hop queries [<count>]
  1300.  
  1301. Display or set the number of UDP probes that will be sent at  each  stage  of
  1302. the trace. The default is 3.
  1303.  
  1304. 3.36.5.  hop trace [on | off]
  1305.  
  1306. Display or set the flag that controls the display of  additional  information
  1307. during a hop check session.
  1308.  
  1309. 3.37.  hostname [<name>]
  1310.  
  1311. Display or set the local host's name. By convention this should be  the  same
  1312. as  the  host's primary domain name. This string is used only in the greeting
  1313. messages of the various network servers;  note  that  it  does  NOT  set  the
  1314. system's IP address.
  1315.  
  1316. If <name> is the same as an <iface> (see the Attach commands  chapter),  this
  1317. command  will  search for a CNAME domain resource record which corresponds to
  1318.  
  1319.  
  1320.  
  1321.  
  1322.                                    - 21 -
  1323. the IP address of the <iface>.
  1324.  
  1325. 3.38.  hs
  1326.  
  1327. Display statistics about the HS high speed HDLC  driver  (if  configured  and
  1328. active).
  1329.  
  1330. 3.39.  icmp <subcommand>
  1331.  
  1332. These commands are used for the Internet Control Message Protocol service.
  1333.  
  1334. 3.39.1.  icmp echo [on | off]
  1335.  
  1336. Display or set the flag controlling the asynchronous  display  of  ICMP  Echo
  1337. Reply packets.  This flag must be on for one-shot pings to work (see the ping
  1338. command.)
  1339.  
  1340. 3.39.2.  icmp status
  1341.  
  1342. Display statistics  about  the  Internet  Control  Message  Protocol  (ICMP),
  1343. including the number of ICMP messages of each type sent or received.
  1344.  
  1345. 3.39.3.  icmp trace [on | off]
  1346.  
  1347. Display or set the flag controlling the display of ICMP error messages. These
  1348. informational messages are generated by Internet routers in response to rout-
  1349. ing, protocol or congestion problems. This option should be turned off before
  1350. using  the  hop  check  facility because it relies on ICMP Time Exceeded mes-
  1351. sages, and the asynchronous display of these messages will  be  mingled  with
  1352. hop check command output.
  1353.  
  1354. 3.40.  ifconfig
  1355.  
  1356. Display a list of interfaces, with a short status for each.
  1357.  
  1358. 3.40.1.  ifconfig [<iface> [[[ <subcommand>  <param>]  <subcommand>  <param>]
  1359. .... ]
  1360.  
  1361. When only iface is given, a extended interface status is displayed.  Multiple
  1362. subcommand / parameter can be put on one line.
  1363.  
  1364. 3.40.2.  ifconfig <iface> broadcast <addr>
  1365.  
  1366. Set the broadcast address of interface iface to addr.  Addr can eighter be an
  1367. ax25_addr  or an ether_addr, depending on the interface type, with 1's in the
  1368. host part of the address.  This is related to the netmask  sub-command.   See
  1369. also the arp command.
  1370.  
  1371. 3.40.3.  ifconfig <iface> description ["description"]
  1372.  
  1373. This command sets the interface description to the string  specified.  If  no
  1374. string  is  supplied,  the current description is cleared. The description is
  1375. displayed with the ifconfig iface command (no parameters) and with the  mail-
  1376. box commands.
  1377.  
  1378. 3.40.4.  ifconfig <iface> encapsulation <slip | ax25 | ether | encap | ppp>
  1379.  
  1380. Sets the encapsulation for interface iface to slip / ax25 / ether /  encap  /
  1381. ppp.
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.                                    - 22 -
  1389. 3.40.5.  ifconfig <iface> forward <iface-2>
  1390.  
  1391. When a forward is defined, all output for interface iface  is  redirected  to
  1392. the  interface  directed by iface-2.  To remove the forward, set <iface-2> to
  1393. <iface>.
  1394.  
  1395. 3.40.6.  ifconfig <iface> ipaddress <addr>
  1396.  
  1397. Set the IP address to addr for this interface. This might be nessesary when a
  1398. system  acts  as  a gateway. Like an system with IP address 44.137.1.8 has an
  1399. Internet  access  via  its  ethernet.  The  Internet  IP  address  could   be
  1400. 129.179.122.10.  An  ifconfig  ec0  ipaddress 129.179.122.10 sets the correct
  1401. address for that interface. Now routing to that system will work.  (Note that
  1402. the  44.x.x.x  address is NOT connected to the Internet.)  See also the host-
  1403. name and ip address commands.
  1404.  
  1405. 3.40.7.  ifconfig <iface> linkaddress <hardware-dependant>
  1406.  
  1407. Set the hardware dependant address for this interface.  For AX.25 this can be
  1408. the callsign, for ethernet a new ethernet address.
  1409.  
  1410. 3.40.8.  ifconfig <iface> mtu <param>
  1411.  
  1412. Set the maximum transfer unit to param octeds (bytes).  See the  Setting  ...
  1413. MTU, MSS and Window chapter for more information.
  1414.  
  1415. 3.40.9.  ifconfig <iface> netmask <address>
  1416.  
  1417. Set the sub-net mask for this interface.  The <address> takes the form of  an
  1418. IP  address  with 1's in the network and subnet parts of the address, and 0's
  1419. in the host part of the address.  Sample:  ifconfig  ec0  netmask  0xffffff00
  1420. for  a  class  C  network  (24  bits).  This is related to the broadcast sub-
  1421. command.  See also the route command.
  1422.  
  1423. 3.40.10.  ifconfig <iface> rxbuf <size>
  1424.  
  1425. Set the receive buffer size.
  1426.  
  1427. 3.41.  info
  1428.  
  1429. Info gives information about the version of Nos  currently  running  and  its
  1430. buildin  configuration.  The  configuration  info  is  build  with defines in
  1431. config.h in the source distribution. That way it gives automatically  correct
  1432. configuration information.
  1433.  
  1434. 3.42.  ip <subcommand>
  1435.  
  1436. These commands are used for the Internet Protocol service.
  1437.  
  1438. 3.42.1.   ip  access  <permit|deny|delete>  <dest   addr>[/<bits>]   <ifname>
  1439. [lowport [higport]]
  1440.  
  1441. Set or display access control for IP routing functions. This  command  imple-
  1442. ments  router  access functions to NosFp. Permit enables dest-addr packets to
  1443. be routed via ifname. Deny disables those. If lowport is not given, all ports
  1444. are  assumed. If only lowport is given, that port is only checked for permis-
  1445. sion If  lowport  and  highport  are  given,  that  is  the  range  of  ports
  1446. permitted/denied.   Dest-addr can be the word all for all addresses possible.
  1447. Lowport can be the word none for all ports.  The ip access delete must  match
  1448. a previous defined permit or deny to be able to delete that definition.  Some
  1449. samples:
  1450.  
  1451.  
  1452.  
  1453.  
  1454.                                    - 23 -
  1455.  ip access permit 44/8 ax0
  1456.  ip access deny all ax0 1 1023
  1457.  ip access permit all ax0 If no access list is created, all interfaces  might
  1458. carry  all types. If an access control is defined for an interface there must
  1459. be an permit defined for that interface to  allow  trafic.  Thus  an  partial
  1460. denyal without an permit is an complete denyal.
  1461.  
  1462. 3.42.2.  ip address [<hostid>]
  1463.  
  1464. Display or set the default local IP  address.  This  command  must  be  given
  1465. before  an  attach  command if it is to be used as the default IP address for
  1466. the interface.
  1467.  
  1468. 3.42.3.  ip rtimer [<seconds>]
  1469.  
  1470. Display or set the IP reassembly timeout. The default is 30  seconds.   Value
  1471. is in seconds.
  1472.  
  1473. 3.42.4.  ip status
  1474.  
  1475. Display Internet Protocol (IP) statistics, such as total  packet  counts  and
  1476. error counters of various types.
  1477.  
  1478. 3.42.5.  ip ttl [<hops>]
  1479.  
  1480. Display or set the default time-to-live value  placed  in  each  outgoing  IP
  1481. datagram.  This limits the number of switch hops the datagram will be allowed
  1482. to take. The idea is to bound the lifetime of the  packet  should  it  become
  1483. caught  in  a routing loop, so make the value slightly larger than the number
  1484. of hops across the network you expect to transit packets.  The default is set
  1485. at compilation time to the official recommended value for the Internet.
  1486.  
  1487. 3.43.  isat [on | off]
  1488.  
  1489. Display or set the AT flag.  Normaly this flag is set when  an  interface  is
  1490. attached  with an interrupt of 8 or higher. This is to signal that the second
  1491. interrupt controllerc in a AT also needs an return of interrupt  signal.   If
  1492. an  AT  type  clock is in use, this command will allow measurement of time in
  1493. milliseconds, rather than clock ticks (55 milliseconds per clock tick).  Dur-
  1494. ing  I/O initialisation this flag is set if the monitor prom has the standard
  1495. byte 0xfc at address f000:fffe.
  1496.  
  1497. 3.44.  kick [<session>]
  1498.  
  1499. Kick all sockets associated with a session; if no argument is given, kick the
  1500. current  session.   Performs  the same function as the ax25 kick and tcp kick
  1501. commands, but is easier to type.
  1502.  
  1503. 3.45.  lock [password <passwd>]
  1504.  
  1505. Locks the keyboard so the children can play  other  games.   If  password  is
  1506. given  then  <password>  is saved as the unlock string.  If no parameters are
  1507. supplied, the keyboard becomes locked. If the keyboard is locked and the lock
  1508. command  is  given,  the password is requested. If a correct password is sup-
  1509. plied, the keyboard becomes unlocked.
  1510.  
  1511. 3.46.  log [stop | <filename>]
  1512.  
  1513. Display the current log filename or set the filename for logging server  ses-
  1514. sions.  If  stop is given as the argument, logging is terminated (the servers
  1515. themselves are unaffected).  If a file name is given as an  argument,  server
  1516.  
  1517.  
  1518.  
  1519.  
  1520.                                    - 24 -
  1521. session log entries will be appended to it.
  1522.  
  1523. 3.47.  mail
  1524.  
  1525. This command will start a shell escape command. The mailer  used  is  defined
  1526. with the DOS environment variable MAILER, wich defaults to BM.EXE.
  1527.  
  1528. 3.48.  mbox [<subcommand>]
  1529.  
  1530. Display the status of the mailbox server system (if configured).
  1531.  
  1532. 3.48.1.  mbox attend [yes | no]
  1533.  
  1534. Displays or sets the attended flag on. This is used to announce in the  mail-
  1535. box if the station mannager is willing to attend his station (chat).
  1536.  
  1537. 3.48.2.  mbox expert <on|off>
  1538.  
  1539. Displays or set the level expected of a mailbox user. When set (s)he gets the
  1540. 1  line prompt. When not set a long prompt is send and the user can set Xpert
  1541. mode to get the 1 line prompt.
  1542.  
  1543. 3.48.3.  mbox fwdinfo ["forward info"]
  1544.  
  1545. Displays or sets the mailbox forward info to be included in the R:  line  for
  1546. forwarded BBS bulletins.  An empty string ("") as info clears the info field.
  1547.  
  1548. 3.48.4.  mbox haddress ["home-address"]
  1549.  
  1550. Displays or sets the home address field to be included in  the  R:  line  for
  1551. forwarded BBS bulletins.  An empty string ("") clears the field.
  1552.  
  1553. 3.48.5.  mbox jumpstart <on|off>
  1554.  
  1555. Displays or sets the mailbox jumpstart code. When set  and  an  "known"  node
  1556. connects to the mailbox, no extra line needs to be send to activate the mail-
  1557. box but the prompt is send directly. Warning: When set, it takes a  while  to
  1558. hear  all  nodes and an AX25 connect could have an wrong start as there is no
  1559. wait for a level 3 protocol check.  Especialy  RSPF  in  virtual  mode  could
  1560. course serious problems.
  1561.  
  1562. 3.48.6.  mbox kick
  1563.  
  1564. To kick the mailbox back in activity after retry timeouts.
  1565.  
  1566. 3.48.7.  mbox maxmsg
  1567.  
  1568. To display or set the maximum number of messages per area when  an  notesfile
  1569. is shown to a user. This reserves lots of memory for every mailbox session.
  1570.  
  1571. 3.48.8.  mbox motd
  1572.  
  1573. Display ot set the mailbox welcoming Message Of The Day.
  1574.  
  1575. 3.48.9.  mbox nrid <on|off>
  1576.  
  1577. DIsplays or sets the Netrom id flag. When set the node id is displayed on the
  1578. prompt line.
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.                                    - 25 -
  1587. 3.48.10.  mbox qth ["qth info"]
  1588.  
  1589. Displays or sets the info for qth in the R: line for forwarded BBS messages.
  1590.  
  1591. 3.48.11.  mbox secure <yes|no>
  1592.  
  1593. Displays or sets the security option for mailbox gateway users. If set  users
  1594. comming  in via telnet to the bbs are not allowed to use the gateway.  If not
  1595. set anybody can use the gateway. (Note: No check for Bozo's).  Also the mail-
  1596. box send command is disabled except for ax25 and netrom connects.
  1597.  
  1598. 3.48.12.  mbox smtptoo <yes|no>
  1599.  
  1600. Displays or sets the flag to include SMTP headers in BBS messages.  When  set
  1601. SMTP headers are included in messages. When not set not included.
  1602.  
  1603. 3.48.13.  mbox status
  1604.  
  1605. An alias for just entering mbox on the prompt line.
  1606.  
  1607. 3.48.14.  mbox timer [<seconds>]
  1608.  
  1609. Display the current interval and time remainig or set the mailbox  forwarding
  1610. timer.
  1611.  
  1612. 3.48.15.  mbox tiptimeout
  1613.  
  1614. Displays or sets the timeout value for tip connection timeout. After  timeout
  1615. seconds of no activity the connection is closed.
  1616.  
  1617. 3.48.16.  mbox trace [yes | no]
  1618.  
  1619. Displays or sets mailbox forward trace code flag. The trace is  very  minimal
  1620. but every one working on mailbox/forward code now has a common flag Mtrace.
  1621.  
  1622. 3.48.17.  mbox zipcode zip
  1623.  
  1624. Displays or sets the info for the zip field for R:  line  BBS  header  lines.
  1625. This  field  is  max 7 characters long as released. For USA the zip is only 6
  1626. numbers long. Netherlands has 4 figures a space and 2  letters.  Guess  every
  1627. PTT wants something they "invented" their own.
  1628.  
  1629. 3.49.  memory <subcommand>
  1630.  
  1631. These commands are used for memory allocation.
  1632.  
  1633. 3.49.1.  memory debug [on|off]
  1634.  
  1635. Displays or sets the memory allocator debug flag. If set debug information is
  1636. written  to the log file containing most flags and parameters from the memory
  1637. allocation routines.
  1638.  
  1639. 3.49.2.  memory efficient [yes | no]
  1640.  
  1641. Displays or sets the search algorithm for buffer memory. When set the  search
  1642. is  always  started  from  the beginning of the free list. This is slower but
  1643. keeps memory fragmentation to a minimum. When clear search is started on  the
  1644. end,  accounting  for  more  memory  fragmentation but keeping speed. Roumers
  1645. state that you should include this command as the first line in autoexec.nos.
  1646. The current releases default sets efficient to yes.
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.                                    - 26 -
  1653. 3.49.3.  memory freelist
  1654.  
  1655. Display the storage allocator free list. Each entry consists  of  a  starting
  1656. address, in hex, and a size, in decimal bytes.
  1657.  
  1658. 3.49.4.  memory ibufsize [<size>]
  1659.  
  1660. Display or set the size of the buffers in the  interrupt  buffer  pool.   The
  1661. size  should  be  set to the largest type of buffer plus a header size of 22.
  1662. For example: If your ax25 is the omly interface and a packet length of 256 is
  1663. defined,  the  ibufsize  should  be 256 + 10 * 6 + 22. The 10 * 6 is the ax25
  1664. header (source , destination and 8 digipeaters).
  1665.  
  1666. 3.49.5.  memory minheap [<number>]
  1667.  
  1668. Displays or sets the minimum heap size to be allocated before shell  escaping
  1669. to  DOS.  This  assures a free heap so that Nos can run trough without gettig
  1670. short on memory for a while.
  1671.  
  1672. 3.49.6.  memory nibufs [<number>]
  1673.  
  1674. Display or set the number of interrupt buffer pool buffers.  If the number of
  1675. buffers  is  set,  the  statistics in the memory status display are reset for
  1676. number of interrupt buffer fails. The minimum available value is set  to  the
  1677. requested  number  of buffers.  A roule of thumb for the number of buffers is
  1678. to watch the statistics and keep a minimum of 2  free  buffers.  Increase  or
  1679. decrease as required.
  1680.  
  1681. 3.49.7.  memory sizes
  1682.  
  1683. Display a histogram of storage allocator request sizes. Each histogram bin is
  1684. a binary order of magnitude (i.e., a factor of 2).
  1685.  
  1686. 3.49.8.  memory status
  1687.  
  1688. Display a summary of storage allocator statistics. The first line  shows  the
  1689. base address of the heap, its total size, the amount of heap memory available
  1690. in bytes and as a percentage of the total heap size, and the amount of memory
  1691. left  over  (i.e., not placed on the heap at startup) and therefore available
  1692. for shell subcommands.
  1693.  
  1694. The second line shows the total number of calls to allocate and  free  blocks
  1695. of  memory, the difference of these two values (i.e., the number of allocated
  1696. blocks outstanding), the number of allocation requests that were  denied  due
  1697. to  lack  of memory, and the number of calls to free() that attempted to free
  1698. garbage (eg. by freeing the same block twice or freeing a garbled pointer).
  1699.  
  1700. The third line shows the garbage collection status.  Garbage collection is  a
  1701. separate  process running every second. If memory is "low" garbage collection
  1702. routines are called in "Red alert" mode, else in "Yellow alert".
  1703.  
  1704. The fourth line shows the number of calls to malloc and  free  that  occurred
  1705. with  interrupts  off. In normal situations these values should be zero.  The
  1706. fourth line shows statistics for the special pool of fixed-size buffers  used
  1707. to satisfy requests for memory at interrupt time. The variables shown are the
  1708. number of buffers currently in the  pool,  their  size,  and  the  number  of
  1709. requests that failed due to exhaustion of the pool.
  1710.  
  1711. The fifth line shows the current setting of the interrupt  buffer  pool,  its
  1712. minimal  value  and the number of no buffers available.  These statistics are
  1713. reset when a memory nibufs <number> command is given.
  1714.  
  1715.  
  1716.  
  1717.  
  1718.                                    - 27 -
  1719. 3.49.9.  memory thresh [<size>]
  1720.  
  1721. Displays or sets the memory threshold size in bytes.  If  memory  gets  below
  1722. this value , no more new sessions are started or accepted.
  1723.  
  1724. 3.50.  mkdir <dirname>
  1725.  
  1726. Create a sub-directory in the current working directory.
  1727.  
  1728. 3.51.  mode <iface> [vc | datagram]
  1729.  
  1730. Control the default transmission mode on the specified AX.25  interface.   In
  1731. datagram mode, IP packets are encapsulated in AX.25 UI frames and transmitted
  1732. without any other link level mechanisms, such as connections or  acknowledge-
  1733. ments.
  1734.  
  1735. In vc (virtual circuit) mode, IP packets are encapsulated in AX.25  I  frames
  1736. and are acknowledged at the link level according to the AX.25 protocol.  Link
  1737. level connections are opened if necessary.
  1738.  
  1739. In both modes, ARP is used to map IP to AX.25 addresses.  The defaults can be
  1740. overridden  with the type-of-service (TOS) bits in the IP header.  Turning on
  1741. the "reliability" bit causes I frames to be used, while turning on  the  "low
  1742. delay"  bit uses UI frames.  (The effect of turning on both bits is undefined
  1743. and subject to change).
  1744.  
  1745. In both modes, IP-level fragmentation is done if the datagram is larger  than
  1746. the interface  MTU.  In virtual circuit mode, however, the resulting datagram
  1747. (or fragments) is further fragmented at the AX.25 layer if it (or  they)  are
  1748. still  larger  than  the  AX.25  paclen  parameter.  In  AX.25 fragmentation,
  1749. datagrams are broken into several I frames and reassembled at  the  receiving
  1750. end  before  being passed to IP. This is preferable to IP fragmentation when-
  1751. ever possible because of decreased overhead (the IP header isn't repeated  in
  1752. each  fragment)  and  increased  robustness  (a  lost fragment is immediately
  1753. retransmitted by the link layer).
  1754.  
  1755. 3.52.  more <file> [<file> ...]
  1756.  
  1757. Display the specified file(s) a screen at a time.  To  proceed  to  the  next
  1758. screen,  press  the  space bar; to cancel the display, hit the 'q' key.  A CR
  1759. advances a line.  The more command creates a session that you can suspend and
  1760. resume just like any other session.
  1761.  
  1762. 3.53.  motd [<"message of the day">]
  1763.  
  1764. Display the current message or  sets  the  welcome  message  to  the  defined
  1765. string.
  1766.  
  1767. 3.54.  multitask [on | off]
  1768.  
  1769. Displays or sets the multi task flag. If set Nos  continues  to  service  its
  1770. interrupts  and  handling  of  normal operation when put in the background by
  1771. executing a shell escape. Some programs do not like  to  miss  valuable  time
  1772. taken away this way and weard results can happen. Clearing the flag stops all
  1773. activiity fron Nos when put in the background.
  1774.  
  1775. 3.55.  netrom <subcommand>
  1776.  
  1777.  
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784.                                    - 28 -
  1785. 3.55.1.  netrom acktime [<milliseconds>]
  1786.  
  1787. Displays or sets the ack delay timer, similary to ax25 t2.
  1788.  
  1789. 3.55.2.  netrom alias <alias>
  1790.  
  1791. This sets the netrom alias for this station.
  1792.  
  1793. 3.55.3.  netrom bcnodes <iface>
  1794.  
  1795. Initiates an immediate broadcast of nodelist on iface.
  1796.  
  1797. 3.55.4.  netrom call <call>
  1798.  
  1799. Displays or sets the call to be used by the netrom interface. Note: this is a
  1800. shortcut for the "ifconfig netrom linkaddress call" command.
  1801.  
  1802. 3.55.5.  netrom connect <node>
  1803.  
  1804. Start a connection to node.
  1805.  
  1806. 3.55.6.  netrom choketime [<milliseconds>]
  1807.  
  1808. Display or set the time breaking a send choke. Choke is the term netrom  uses
  1809. for flow control conditions.
  1810.  
  1811. 3.55.7.  netrom derate [on | off]
  1812.  
  1813. Display or set automatic derating of netrom routes on link failure.
  1814.  
  1815. 3.55.8.  netrom interface <iface> <quality>
  1816.  
  1817. Define a netrom interface iface.  The quality can be between 1 and  255.  For
  1818. compatibility  with other implementations set this to 192 normaly. A check is
  1819. made that the interface is of type CL_AX25,  meaning  NETROM  capable  media.
  1820. Note:  the alias is not specified on this line anymore. Use netrom alias com-
  1821. mand.
  1822.  
  1823. 3.55.9.  netrom irtt [<milliseconds>]
  1824.  
  1825. Display or set the initial round trip time.
  1826.  
  1827. 3.55.10.  netrom kick <&nrcb>
  1828.  
  1829. Give the control block a kick to get activity going again.
  1830.  
  1831. 3.55.11.  netrom load [<filename>]
  1832.  
  1833. When fully implemented reloads a saved netrom  node  list  to  continue  from
  1834. where you left when you saved the list. All entry's read are time decremented
  1835. as if normal time just went on. If it took some time  (obsotimer  *  x)  your
  1836. list could be empty as they all timed out.
  1837.  
  1838. 3.55.12.  netrom minquality [<value>]
  1839.  
  1840. Display or set the minimum quality for recognizing  a  node  entry.   Entry's
  1841. below this value are not considered valuable for usage.
  1842.  
  1843.  
  1844.  
  1845.  
  1846.  
  1847.  
  1848.  
  1849.  
  1850.                                    - 29 -
  1851. 3.55.13.  netrom nodefilter <subcommand>
  1852.  
  1853. Node filtering.
  1854.  
  1855. 3.55.13.1.  netrom nodefilter add <neighbor> <iface>
  1856.  
  1857. Allow neighbor to give us node updates.
  1858.  
  1859. 3.55.13.2.  netrom nodefilter drop <neighbor> <iface>
  1860.  
  1861. Disallow neighbor to give us node updates.
  1862.  
  1863. 3.55.13.3.  netrom nodefilter mode [none | accept | reject]
  1864.  
  1865. Display or set the initial filter schema. None accepts  all.   Accept,accepts
  1866. only  from  nodes  defined in netrom nodefilter add lists.  Reject,no accepts
  1867. from nodes defined in netrom nodefilter add lists.
  1868.  
  1869. 3.55.14.  netrom nodetimer [<seconds>]
  1870.  
  1871. Display or set the interval our node list is transmitted.
  1872.  
  1873. 3.55.15.  netrom obsotimer [<seconds>]
  1874.  
  1875. Display or set the time a node quality gets decremented.
  1876.  
  1877. 3.55.16.  netrom promiscious [off | on]
  1878.  
  1879. Enables nodes with a higher quality than defined with minquality.  If on, all
  1880. nodes are received, independent od nodefilter.
  1881.  
  1882. 3.55.17.  netrom qlimit [<bytes>]
  1883.  
  1884. Display or set the maximum queue limit for chat. Similar to ax25 window.
  1885.  
  1886. 3.55.18.  netrom reset <&nrcb>
  1887.  
  1888. Remove the control block. You can find the control block with socket.
  1889.  
  1890. 3.55.19.  netrom retries [<value>]
  1891.  
  1892. Display or set the maximum number of retries on connect, disconnect or data.
  1893.  
  1894. 3.55.20.  netrom route <subcommand>
  1895.  
  1896. Netrom routing commands.
  1897.  
  1898. 3.55.20.1.  netrom route add <alias> <destination> <iface> <quality>  <neigh-
  1899. bor>
  1900.  
  1901. Add a netrom route.
  1902.  
  1903. 3.55.20.2.  netrom route drop <destination> <neighbor> <iface>
  1904.  
  1905. Delete a netrom route.
  1906.  
  1907. 3.55.20.3.  netrom route info <destination>
  1908.  
  1909. Display the route it would take to get to destination.
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.                                    - 30 -
  1917. 3.55.21.  netrom status
  1918.  
  1919. Displays all netrom connections.
  1920.  
  1921. 3.55.22.  netrom save [<filename>]
  1922.  
  1923. When fully implemented, saves the current  netrom  node  list  in  memory  to
  1924. /netrom.sav or filename, if given.
  1925.  
  1926. 3.55.23.  netrom timertype [exponential | linear]
  1927.  
  1928. Displays or sets the type of backoff.
  1929.  
  1930. 3.55.24.  netrom ttl [<hops>]
  1931.  
  1932. Display or set the maximum number of hops a frame might hop before discarded,
  1933. if it did not reach its destination before.
  1934.  
  1935. 3.55.25.  netrom user [<username>]
  1936.  
  1937. Display or set our netrom user name. This is used on outgoing connects.
  1938.  
  1939. 3.55.26.  netrom verbose [off | on]
  1940.  
  1941. Display or set the verbose flag. If set all nodes known to us are transmitted
  1942. each  time  the  nodetimer  expires. If off, only your stations node ident is
  1943. send out.
  1944.  
  1945. 3.55.27.  netrom window [<frames>]
  1946.  
  1947. Display or set the size of the sliding window. This is the largest  send  and
  1948. receive window we might negotiate.
  1949.  
  1950. 3.56.  nntp <subcommand>
  1951.  
  1952. Network news transfer protocol has the following subcommands:
  1953.  
  1954. 3.56.1.  nntp addserver <nntpserver> <seconds> [<range>] [<groups>]
  1955.  
  1956. Add a nntp news server to quiry  every  seconds  interval  for  new  articles
  1957. specified  by  the nntp groups command. Range can be a limit in time to query
  1958. like nntp addserver someserver 600 22:00-23:00,  to  only  query  the  server
  1959. between 10 and 11pm.  Multiple nntp add can be used co concatenate groups (up
  1960. to 512 bytes) The interval seconds can be set to 0, so that normaly the  nntp
  1961. client  does not query the server regulary but an nntp kick nntpserver can be
  1962. used to start a session.
  1963.  
  1964. 3.56.2.  nntp directory <directory>
  1965.  
  1966. Show or set default directory for spooling news.  This  is  not  the  control
  1967. directory but the (alternate) place to spool articles to.
  1968.  
  1969. 3.56.3.  nntp dropserver <nntpserver>
  1970.  
  1971.  
  1972. 3.56.4.  nntp groups <group> [<group> ...]
  1973.  
  1974. Set or display currently set newsgroups.
  1975.  
  1976.  
  1977.  
  1978.  
  1979.  
  1980.  
  1981.  
  1982.                                    - 31 -
  1983. 3.56.5.  nntp  kick <nntpserver>
  1984.  
  1985. Kick the client to get in touch with the named server.
  1986.  
  1987. 3.56.6.  nntp listservers
  1988.  
  1989. Lists the curently defined servers.
  1990.  
  1991. 3.57.  nntp quiet [yes | no]
  1992.  
  1993. Shows or sets the flag controlling the display of newly  received  nntp  news
  1994. messages.  The  smpt  quiet  fag controls the beep following the message.  If
  1995. both are off, nothing is shown, keeping the  display  from  getting  hung  on
  1996. -more- when running unattended.
  1997.  
  1998. 3.58.  nntp trace <level>
  1999.  
  2000. Sets or shows the current trace level for the nntp client.  0  No  tracing  1
  2001. (default) displays serious errors.  2  displays as 1 and transient errors.  3
  2002. displays as 2 and session progress.  4  displays as  3  and  actual  received
  2003. articles.  5  displays errors.
  2004.  
  2005. 3.59.  nrstat
  2006.  
  2007. Displays the netrom interface statistics.
  2008.  
  2009. 3.60.  param <iface> [<param> ...]
  2010.  
  2011. Invoke a device-specific control routine.  On  a  KISS  TNC  interface,  this
  2012. sends  control  packets  to the TNC.  Data bytes are treated as decimal.  For
  2013. example, param ax0 1 255  will set the keyup timer (type field =  1)  on  the
  2014. KISS TNC configured as ax0 to 2.55 seconds (255 x .01 sec).  On a SLIP inter-
  2015. face, the param command allows the baud rate to be read  (without  arguments)
  2016. or  set.  On  asy  lines DTR and RTS can be (and possibly should be) set with
  2017. param iface dtr 1 and param iface rts 1.  The implementation of this  command
  2018. for the various interface drivers is incomplete and subject to change.
  2019.  
  2020. 3.61.  ping <hostid> [<length> [<milliseconds> [<incflag>]]]
  2021.  
  2022. Ping (send ICMP Echo Request packets to) the specified host. By  default  the
  2023. data  field  contains only a small timestamp to aid in determining round trip
  2024. time; if the optional length argument is given,  the  appropriate  number  of
  2025. data bytes (consisting of hex 55) are added to the ping packets.
  2026.  
  2027. If milliseconds is specified, pings will  be  repeated  indefinitely  at  the
  2028. specified  number  of  milliseconds;  otherwise  a single, "one shot" ping is
  2029. done.  Responses to one-shot  pings  appear  asynchronously  on  the  command
  2030. screen,  while  repeated  pings  create  a  session that may be suspended and
  2031. resumed.  Pinging continues until the session is manually reset.
  2032.  
  2033. The incflag option causes a repeated ping to increment the target IP  address
  2034. for  each  ping;  it  is  an  experimental feature for searching blocks of IP
  2035. addresses for active hosts.
  2036.  
  2037. 3.62.  pop <subcommand>
  2038.  
  2039. The pop client provides an automatic interface to  the  pop  server  that  is
  2040. totaly  transparen to the user; all that the user needs to do is to set a few
  2041. key parameters and the client will take it from there, appart from registring
  2042. with  the server station manager for setting up the user data. (see pop user-
  2043. data command.  To read more about pop, read rfc937.  The following  paragraph
  2044.  
  2045.  
  2046.  
  2047.  
  2048.                                    - 32 -
  2049. describe  the pop subcommands.
  2050.  
  2051. 3.62.1.  pop mailbox [<name>]
  2052.  
  2053. Show the defined name or sets the name to name for POP mail  queries  to  the
  2054. mailhost.  The  server  keeps  the  mail  in  the  mailbox  name  located  in
  2055. /spool/mail/name.txt. This is a mandatory parameter.
  2056.  
  2057. 3.62.2.  pop mailhost [<ipaddr>]
  2058.  
  2059. Show the currently defined host address for a  pop  server  or  sets  the  IP
  2060. address  to the system named ipaddr for POP connections.  This is a mandatory
  2061. parameter.
  2062.  
  2063. 3.62.3.  pop kick
  2064.  
  2065. Start a POP connection now. (one shot connection)
  2066.  
  2067. 3.62.4.  pop timer [<seconds>]
  2068.  
  2069. Show the current setting and time remaining untill  next  server  enquiry  or
  2070. when  seconds is given, defines the interval that a pop connection is started
  2071. every <seconds> to retrieve mail from the server system.  When the  timer  is
  2072. not set the client is only started with a pop kick command.
  2073.  
  2074. 3.62.5.  pop userdata <name> <password>
  2075.  
  2076. Sets up the userdata used for validation on the POP server system. Note  that
  2077. <name>  and  <password> are case sensitive. When only pop userdata is entered
  2078. to show the values only the <name> is shown. (ultimate in  security,  if  you
  2079. realy  want to see the password look in the "ether").  Remember: the name and
  2080. password should also be defined at the server site in the popusers file.
  2081.  
  2082. 3.63.  ppp <subcommands>
  2083.  
  2084. These commands are used for Point to Point Protocol interfaces.
  2085.  
  2086. This implementation of PPP  is  designed  to  be  as  complete  as  possible.
  2087. Because  of  this,  the number of options can be rather daunting.  However, a
  2088. typical PPP configuration might include the following commands:
  2089.  
  2090.         attach asy 0x3f8 4 ppp pp0 4096 1500 9600
  2091.         dial pp0 30 <hostid> 3 dialer.pp0
  2092.         #
  2093.         ppp pp0 lcp local accm 0
  2094.         ppp pp0 lcp local compress address on
  2095.         ppp pp0 lcp local compress protocol on
  2096.         ppp pp0 lcp local magic on
  2097.         ppp pp0 lcp open active
  2098.         #
  2099.         ppp pp0 ipcp local compress tcp 16 1
  2100.         ppp pp0 ipcp open active
  2101.         #
  2102.         route add default pp0
  2103.  
  2104.  
  2105. 3.63.1.  ppp <iface>
  2106.  
  2107. Display the status of the PPP interface.
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113.  
  2114.                                    - 33 -
  2115. 3.63.2.  ppp <iface> lcp ...
  2116.  
  2117. These commands are used for the LCP [Link Control Protocol] configuration.
  2118.  
  2119. 3.63.2.1.  ppp <iface> lcp close
  2120.  
  2121. Shutdown the PPP interface.
  2122.  
  2123. 3.63.2.2.  ppp <iface> lcp local ...
  2124.  
  2125. These commands control the configuration of the local side of the  link.   If
  2126. an  option is specified, the parameters will be used as the initial values in
  2127. configuration requests.  If not specified, that option will not be requested.
  2128.  
  2129. For each of these options, the allow parameter  will  permit  the  remote  to
  2130. include  that option in its response, even when the option is not included in
  2131. the request.  By default, all options are allowed.
  2132.  
  2133. 3.63.2.2.1.  ppp <iface> lcp local accm [ <bitmap> | allow [on | off] ]
  2134.  
  2135. Display or set the Async Control Character Map.  The default is 0xffffffff.
  2136.  
  2137. 3.63.2.2.2.  ppp <iface> lcp local authenticate [ pap | none |  allow  [on  |
  2138. off] ]
  2139.  
  2140. Display or set the authentication protocol.  The default is none.
  2141.  
  2142. 3.63.2.2.3.  ppp <iface> lcp local compress address/control  [  on  |  off  |
  2143. allow [on | off] ]
  2144.  
  2145. Display or set the option to compress the address and control fields  of  the
  2146. PPP  HLDC-like  header.   This  is  generally desirable for slow asynchronous
  2147. links, and undesirable for fast or synchronous links.  The default is off.
  2148.  
  2149. 3.63.2.2.4.  ppp <iface> lcp local compress protocol [ on | off | allow [on |
  2150. off] ]
  2151.  
  2152. Display or set the option to compress the protocol field of the PPP HLDC-like
  2153. header.   This  is  generally  desirable  for  slow  asynchronous  links, and
  2154. undesirable for fast or synchronous links.  The default is off.
  2155.  
  2156. 3.63.2.2.5.  ppp <iface> lcp local magic [ on | off | <value> | allow  [on  |
  2157. off] ]
  2158.  
  2159. Display or set the initial Magic Number.  The default is off (zero).
  2160.  
  2161. 3.63.2.2.6.  ppp <iface> lcp local mru [ <size> | allow [on | off] ]
  2162.  
  2163. Display or set the Maximum Receive Unit.  The default is 1500.
  2164.  
  2165. 3.63.2.2.7.  ppp <iface> lcp local default
  2166.  
  2167. Reset the options to their default values.
  2168.  
  2169. 3.63.2.3.  ppp <iface> lcp open active | passive
  2170.  
  2171. Wait for the physical layer to come up.  If  active,  initiate  configuration
  2172. negotiation.  If passive, wait for configuration negotiation from the remote.
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179.  
  2180.                                    - 34 -
  2181. 3.63.2.4.  ppp <iface> lcp remote ...
  2182.  
  2183. These commands control the configuration of the remote side of the link.  The
  2184. options are identical to those of the local side.  If an option is specified,
  2185. the parameters will be  used  in  responses  to  the  remote's  configuration
  2186. requests.  If not specified, that option will be accepted if it is allowed.
  2187.  
  2188. For each of these options, the allow parameter  will  permit  the  remote  to
  2189. specify that option in its request.  By default, all options are allowed.
  2190.  
  2191. 3.63.2.5.  ppp <iface> lcp timeout [<seconds>]
  2192.  
  2193. Display or set the interval to  wait  between  configuration  or  termination
  2194. attempts.  The default is 3 seconds.
  2195.  
  2196. 3.63.2.6.  ppp <iface> lcp try ...
  2197.  
  2198. These commands are used for the various counters.
  2199.  
  2200. 3.63.2.6.1.  ppp <iface> lcp try configure [<count>]
  2201.  
  2202. Display or set the number of configuration requests sent.  The default is 10.
  2203.  
  2204. 3.63.2.6.2.  ppp <iface> lcp try failure [<count>]
  2205.  
  2206. Display or set the number of bad  configuration  requests  allowed  from  the
  2207. remote.  The default is 5.
  2208.  
  2209. 3.63.2.6.3.  ppp <iface> lcp try terminate [<count>]
  2210.  
  2211. Display or set the number of termination requests sent before shutdown.   The
  2212. default is 2.
  2213.  
  2214. 3.63.3.  ppp <iface> ipcp ...
  2215.  
  2216. These commands are used for the IPCP  [Internet  Protocol  Control  Protocol]
  2217. configuration.
  2218.  
  2219. The close, open, timeout and  try  sub-commands  are  identical  to  the  LCP
  2220. (described above).
  2221.  
  2222. 3.63.3.1.  ppp <iface> ipcp local ...
  2223.  
  2224. These commands control the configuration of the local side of the  link.   If
  2225. an  option is specified, the parameters will be used as the initial values in
  2226. configuration requests.  If not specified, that option will not be requested.
  2227.  
  2228. For each of these options, the allow parameter  will  permit  the  remote  to
  2229. include  that option in its response, even when the option is not included in
  2230. the request.  By default, all options are allowed.
  2231.  
  2232. 3.63.3.1.1.  ppp <iface> ipcp local address [ <hostid> | allow [on | off] ]
  2233.  
  2234. Display or set the local address for negotiation purposes.  If an address  of
  2235. 0  is  specified,  the  other  side  of the link will supply the address.  By
  2236. default, no addresses are negotiated.
  2237.  
  2238. 3.63.3.1.2.  ppp <iface> ipcp local compress [ tcp <slots> [<flag>] | none  |
  2239. allow [on | off] ]
  2240.  
  2241. Display or set the compression protocol.  The default is none.
  2242.  
  2243.  
  2244.  
  2245.  
  2246.                                    - 35 -
  2247. The tcp <slots> specifies the number of "conversation" slots, which must be 1
  2248. to  255.   (This  may be limited at compilation time to a smaller number.)  A
  2249. good choice is in the range 4 to 16.
  2250.  
  2251. The tcp <flag> is 0 (don't compress the slot number) or 1 (OK to compress the
  2252. slot number).  KA9Q can handle compressed slot numbers, so the default is 1.
  2253.  
  2254. 3.63.3.2.  ppp <iface> ipcp remote ...
  2255.  
  2256. These commands control the configuration of the remote side of the link.  The
  2257. options are identical to those of the local side.  If an option is specified,
  2258. the parameters will be  used  in  responses  to  the  remote's  configuration
  2259. requests.  If not specified, that option will be accepted if it is allowed.
  2260.  
  2261. For each of these options, the allow parameter  will  permit  the  remote  to
  2262. specify that option in its request.  By default, all options are allowed.
  2263.  
  2264. 3.63.4.  ppp <iface> pap ...
  2265.  
  2266. These commands are used for the PAP [Password Authentication Protocol] confi-
  2267. guration.
  2268.  
  2269. The timeout and try sub-commands are identical to the LCP (described  above).
  2270. However, the terminate counter is unused.
  2271.  
  2272. 3.63.4.1.  ppp <iface> pap user [ <username> [<password>] ]
  2273.  
  2274. Display or set the username (the password may be  set,  but  not  displayed).
  2275. When  the  username  is  specified, but no password is supplied, the ftpusers
  2276. file is searched for the password.  When a username/password  is  unknown  or
  2277. rejected,  a  session  will  appear  at  the  console  to  prompt  for  a new
  2278. username/password.
  2279.  
  2280. 3.63.5.  ppp <iface> trace [<flags>]
  2281.  
  2282. Display or set the flags that control the logging of information  during  PPP
  2283. link configuration.
  2284.  
  2285. The flag value is 0 for none, 1 for basic, and 2 for general.  Values greater
  2286. than  2 are usually not compiled, and are described in the appropriate source
  2287. files where they are defined.
  2288.  
  2289. 3.64.  ps
  2290.  
  2291. Display all current processes in the system. The fields are as follows:
  2292.  
  2293. PID - Process ID (the address of the process descriptor).
  2294.  
  2295. SP - The current value of the process stack pointer.
  2296.  
  2297. stksize - The size of the stack allocated to the process.
  2298.  
  2299. maxstk - The apparent peak stack utilization of this process. This is done in
  2300. a  somewhat  heuristic  fashion, so the numbers should be treated as approxi-
  2301. mate. If this number reaches or exceeds the stksize  figure,  the  system  is
  2302. almost certain to crash; the nos.exe program should be recompiled to give the
  2303. process a larger allocation when it is started.
  2304.  
  2305. event - The event this task is waiting for, if it is not runnable.
  2306.  
  2307. fl - Process status  flags.  There  are  three:  I  (Interrupts  enabled),  W
  2308.  
  2309.  
  2310.  
  2311.  
  2312.                                    - 36 -
  2313. (Waiting  for event) and S (suspended). The I flag is set whenever a task has
  2314. executed a pwait() call (wait for event)  without  first  disabling  hardware
  2315. interrupts.  Only tasks that wait for hardware interrupt events will turn off
  2316. this flag; this is done to avoid critical sections and missed interrupts. The
  2317. W  flag  indicates that the process is waiting for an event; the event column
  2318. will be non-blank. Note that although there may be several runnable processes
  2319. at  any  time  (shown  in the ps listing as those without the W flag and with
  2320. blank event fields) only one process is actually running at any  one  instant
  2321. (The  Refrigerator  Light  Effect  says that the ps command is always the one
  2322. running when this display is generated.)
  2323.  
  2324. 3.65.  pwd [<dirname>]
  2325.  
  2326. An alias for the cd command.
  2327.  
  2328. 3.66.  rarp <subcommand>
  2329.  
  2330. This uses the reverse address resolution protocol.
  2331.  
  2332. 3.66.1.  rarp query <iface> <callsign>
  2333.  
  2334. This starts a reverse resolution request via iface to find the IP address for
  2335. callsign.  It  counts  down  for 10 seconds before giving up listening for an
  2336. answer.
  2337.  
  2338. 3.67.  record [off | <filename>]
  2339.  
  2340. Append to filename all data received on the current session.   Data  sent  on
  2341. the  current session is also written into the file except for Telnet sessions
  2342. in remote echo mode.  The command record off stops recording and  closes  the
  2343. file.
  2344.  
  2345. 3.68.  remote [-p <port>] [-k <key>] [-a <kickaddr>] <hostid> exit | reset  |
  2346. kick
  2347.  
  2348. Send a UDP packet to the specified host commanding it to exit  the  Nos  pro-
  2349. gram, reset the processor, or force a retransmission on TCP connections.  For
  2350. this command to be accepted, the remote system must  be  running  the  remote
  2351. server  and  the  port  number specified in the remote command must match the
  2352. port number given when the server was started on the remote system.   If  the
  2353. port numbers do not match, or if the remote server is not running on the tar-
  2354. get system, the command packet is ignored.  Even if the command  is  accepted
  2355. there is no acknowledgement.
  2356.  
  2357. The kick command forces a retransmission timeout on all TCP connections  that
  2358. the remote node may have with the local node.  If the -a option is used, con-
  2359. nections to the specified host are kicked instead. No key is required for the
  2360. kick subcommand.
  2361.  
  2362. The exit and reset subcommands are mainly useful for restarting the nos  pro-
  2363. gram  on  a  remote  unattended  system after the configuration file has been
  2364. updated.  The remote system should invoke the Nos program automatically  upon
  2365. booting,  preferably in an infinite loop.  For example, under MS-DOS the boot
  2366. disk should contain the following in autoexec.bat:
  2367.  
  2368.         :loop
  2369.         nos
  2370.         goto :loop
  2371.  
  2372.  
  2373.  
  2374.  
  2375.  
  2376.  
  2377.  
  2378.                                    - 37 -
  2379. 3.68.1.  remote -s <key>
  2380.  
  2381. The exit and reset subcommands of remote require a password.  The password is
  2382. set on a given system with the -s option, and it is specified in a command to
  2383. a remote system with the -k option. If no password is set with the -s option,
  2384. then the exit and reset subcommands are disabled.
  2385.  
  2386. Note that remote is an experimental feature in NOS; it is not  yet  supported
  2387. by any other TCP/IP implementation.
  2388.  
  2389. 3.69.  rename <oldfilename> <newfilename>
  2390.  
  2391. Rename oldfilename to newfilename.
  2392.  
  2393. 3.70.  reset [<session>]
  2394.  
  2395. Reset the specified session; if no argument is given, reset the current  ses-
  2396. sion.   This  command  should be used with caution since it does not reliably
  2397. inform the remote end that the connection no longer exists.  (In TCP a  reset
  2398. (RST) message will be automatically generated should the remote TCP send any-
  2399. thing after a local reset has been done.  In AX.25 the DM message performs  a
  2400. similar  role.   Both are used to get rid of a lingering half-open connection
  2401. after a remote system has crashed.)
  2402.  
  2403. 3.71.  rip <subcommand>
  2404.  
  2405. These commands are used for the RIP service.
  2406.  
  2407. 3.71.1.  rip accept <gateway>
  2408.  
  2409. Remove the specified gateway from  the  RIP  filter  table,  allowing  future
  2410. broadcasts from that gateway to be accepted.
  2411.  
  2412. 3.71.2.  rip add <hostid> <seconds> [<flags>]
  2413.  
  2414. Add an entry to the RIP broadcast table. The IP routing table will be sent to
  2415. hostid  every  interval  of  seconds. If flags is specified as 1, then "split
  2416. horizon" processing will be performed for this destination. That is,  any  IP
  2417. routing  table  entries  pointing  to the interface that will be used to send
  2418. this update will be removed from the update.  If split horizon processing  is
  2419. not  specified,  then all routing table entries except those marked "private"
  2420. will be sent in each update.  (Private entries are never sent  in  RIP  pack-
  2421. ets).
  2422.  
  2423. Triggered updates are always done. That is, any change in the  routing  table
  2424. that  causes  a  previously  reachable destination to become unreachable will
  2425. trigger an update that advertises the destination with metric 15, defined  to
  2426. mean "infinity".
  2427.  
  2428. Note that for RIP packets to be sent properly to a broadcast  address,  there
  2429. must exist correct IP routing and ARP table entries that will first steer the
  2430. broadcast to the correct interface and  then  place  the  correct  link-level
  2431. broadcast  address  in  the  link-level  destination  field. If a standard IP
  2432. broadcast address convention is used (eg. 128.96.0.0 or 128.96.255.255)  then
  2433. chances  are  you  already  have  the  necessary  IP routing table entry, but
  2434. unusual subnet or cluster-addressed networks may require  special  attention.
  2435. However, an arp add command will be required to translate this address to the
  2436. appropriate link level broadcast address. For example,
  2437.  
  2438.  
  2439. arp add 128.96.0.0 ethernet ff:ff:ff:ff:ff:ff
  2440.  
  2441.  
  2442.  
  2443.  
  2444.                                    - 38 -
  2445. for an Ethernet network (ip address is a sample only!!!), and
  2446.  
  2447.  
  2448. arp add 44.255.255.255 ax25 qst-0
  2449.  
  2450.  
  2451. for an AX25 packet radio channel. (If multiple AX25 interfaces, make a unique
  2452. address for each interface.)
  2453.  
  2454. 3.71.3.  rip drop <dest>
  2455.  
  2456. Remove an entry from the RIP broadcast table.
  2457.  
  2458. 3.71.4.  rip merge [on | off]
  2459.  
  2460. This flag  controls  an  experimental  feature  for  consolidating  redundant
  2461. entries  in  the  IP routing table. When rip merging is enabled, the table is
  2462. scanned after processing each RIP update. An entry is considered redundant if
  2463. the  target(s)  it  covers  would  be routed identically by a less "specific"
  2464. entry already in the table. That is, the target address(es) specified by  the
  2465. entry  in  question must also match the target addresses of the less specific
  2466. entry and the two entries must have the same interface  and  gateway  fields.
  2467. For example, if the routing table contains
  2468.  
  2469.  
  2470. Dest            Len Interface    Gateway          Metric  P Timer  Use
  2471. 1.2.3.4         32  ethernet0    128.96.1.2       1       0 0      0
  2472. 1.2.3           24  ethernet0    128.96.1.2       1       0 0      0
  2473.  
  2474.  
  2475. then the first entry would be deleted as  redundant  since  packets  sent  to
  2476. 1.2.3.4  will  still  be  routed correctly by the second entry. Note that the
  2477. relative metrics of the entries are ignored.
  2478.  
  2479. 3.71.5.  rip refuse <gateway>
  2480.  
  2481. Refuse to accept RIP updates from the specified gateway by adding the gateway
  2482. to the RIP filter table. It may be later removed with the rip accept command.
  2483.  
  2484. 3.71.6.  rip request <gateway>
  2485.  
  2486. Send a RIP Request packet to the specified gateway, causing it to reply  with
  2487. a RIP Response packet containing its routing table.
  2488.  
  2489. 3.71.7.  rip status
  2490.  
  2491. Display RIP status, including a count of  the  number  of  packets  sent  and
  2492. received,  the  number  of  requests and responses, the number of unknown RIP
  2493. packet types, and the number of refused RIP updates from hosts in the  filter
  2494. table.  A  list  of the addresses and intervals to which periodic RIP updates
  2495. are being sent is also shown, along with the contents of the filter table.
  2496.  
  2497. 3.71.8.  rip trace [0 | 1 | 2]
  2498.  
  2499. This variable controls the tracing of  incoming  and  outgoing  RIP  packets.
  2500. Setting  it to 0 disables all RIP tracing. A value of 1 causes changes in the
  2501. routing table to be displayed, while packets that cause no changes  cause  no
  2502. output.  Setting the variable to 2 produces maximum output, including tracing
  2503. of RIP packets that cause no change in the routing table.
  2504.  
  2505.  
  2506.  
  2507.  
  2508.  
  2509.  
  2510.                                    - 39 -
  2511. 3.71.9.  rip ttl <seconds>
  2512.  
  2513. Displays or sets the time to live timer to seconds. Normal timeout  value  is
  2514. 240  seconds.  This  is  not the ttl in a rip broadcast (16 = infinite).  Set
  2515. this timer before starting rip. Change this timer only  in  cooperation  with
  2516. your surrounding nodes. Default is 240 seconds.
  2517.  
  2518. 3.72.  rlogin host
  2519.  
  2520. Sets up an rlogin session via port 511 to an *NIX compatible station.  Defaut
  2521. terminal is an ansi (as defined with the fkeys) compatible terminal.  Default
  2522. user name is guest. (Redefine with set USER= environement variable).
  2523.  
  2524. 3.73.  rmdir <dirname>
  2525.  
  2526. Remove a sub-directory from the current working directory.
  2527.  
  2528. 3.74.  route
  2529.  
  2530. With no arguments, route displays the IP routing table.
  2531.  
  2532. 3.74.1.  route add <dest_hostid>[/bits] | default <iface> [<gateway_hostid> |
  2533. direct [<metric>]]
  2534.  
  2535. This command adds an entry to the routing table. It  requires  at  least  two
  2536. more  arguments,  the  hostid  of  the target destination and the name of the
  2537. interface to which its packets should be sent.  If  the  destination  is  not
  2538. local,  the gateway's hostid should also be specified. (If the interface is a
  2539. point-to-point link, then gateway_hostid may be omitted even if the target is
  2540. non-local  because  this  field  is only used to determine the gateway's link
  2541. level  address,  if  any.   If  the  destination   is   directly   reachable,
  2542. gateway_hostid  is  also unnecessary since the destination address is used to
  2543. determine the interface link address).  If rspf is used and the system  is  a
  2544. switch  /  router  to  multiple routes the keyword direct can be used i.s.o a
  2545. gateway_hostid to set the metric higher as the default  1.  This  way  routes
  2546. advertized by other rspf stations can be cheaper and get selected.  If direct
  2547. is given but metric not, an new algoritm is used to set the metric  dependent
  2548. on the number of subnet mask bits.
  2549.  
  2550. The optional /bits suffix to the destination host id specifies how many lead-
  2551. ing  bits in the host id are to be considered significant in the routing com-
  2552. parisons.  If not specified, 32 bits (i.e., full  significance)  is  assumed.
  2553. With  this  option,  a single routing table entry may refer to many hosts all
  2554. sharing a common bit string prefix in their IP addresses.  For example,  ARPA
  2555. Class A, B and C networks would use suffixes of /8, /16 and /24 respectively;
  2556. the command
  2557.  
  2558. route add 44/8 sl0 44.64.0.2
  2559.  
  2560.  
  2561. causes any IP addresses beginning with "44" in the first 8 bits to be  routed
  2562. to 44.64.0.2; the remaining 24 bits are "don't-cares".
  2563.  
  2564. When an IP address to be routed matches more than one entry  in  the  routing
  2565. table,  the  entry  with  largest  bits parameter (i.e., the "best" match) is
  2566. used. This allows individual hosts or blocks of hosts to be exceptions  to  a
  2567. more general rule for a larger block of hosts.
  2568.  
  2569. The special destination default is used to route datagrams to  addresses  not
  2570. matched by any other entries in the routing table; it is equivalent to speci-
  2571. fying a /bits suffix of /0 to any destination hostid.   Care  must  be  taken
  2572.  
  2573.  
  2574.  
  2575.  
  2576.                                    - 40 -
  2577. with  default  entries  since two nodes with default entries pointing at each
  2578. other will route packets to unknown addresses back and forth in a loop  until
  2579. their   time-to-live  (TTL)  fields  expire.   (Routing  loops  for  specific
  2580. addresses can also be created, but this is  less  likely  to  occur  acciden-
  2581. tally).
  2582.  
  2583. There are two build in interfaces:  loopback  and  encap.   Loopback  is  for
  2584. internal  purposes  only.  The encap is an IP encapsulator interface. This is
  2585. used to encapsulate a complete IP datagram into a IP datagram so that it gets
  2586. "piggy-backed". It is often used to carry ampr.org datagrams (net44) over the
  2587. Internet. Note that the Internet is fully connected and that ampr.org is  (at
  2588. least)  very  loose.   This  way two sites can interchange net44 datagrams to
  2589. each other.  Some extra notes: A Internet gateway has 2 IP addresses: one  on
  2590. ampr.org  and  one  on  the Internet. You should make sure that the interface
  2591. connected to the Internet has the ifconfig ipaddr set correctly.  Note:  This
  2592. previously only worked as gateway for other stations. There was some guessing
  2593. done in picking an IP address when encap is used localy.  The guessing  takes
  2594. the  worst  guess.  (always wrong with a 2.7 Murphy factor) The code now uses
  2595. the local IP address as source when the route starts at the local station. If
  2596. this is not what you want, you can overrule this by setting the IP address of
  2597. the psuedo encap interface to what you want it to be.
  2598.  
  2599. Some extra notes on encap: I have 3  systems  on  an  ethernet  with  network
  2600. 129.179.122.128/25.  In the office I have another net linked to the Internet.
  2601. The addresses there are in the 129.179.122.0/25 range. Now  i  have  a  radio
  2602. link  with  44.137.0.2  and 44.137.1.2 on respective sites. On the 44.137.0.2
  2603. system i have route add 44.0.0.0/8 encap 44.137.1.1 99. On a next  system  on
  2604. my local ethernet i have 44.137.0.1 / 129.179.122.129.  To get from that sys-
  2605. tem to say 44.62.0.1 i have to add an encap to my local  gateway  with  route
  2606. add   44.0.0.0/8   encap   129.179.122.130.    A   route   add   default  ec0
  2607. 129.179.122.130 gives me access to the Internet.  Otherwise  it  will  lookup
  2608. the  address  for  the interface to be used to reach 129.179.122.130 and will
  2609. use 129.179.122.129. Now 44.62.0.1 will NEVER know where  it  came  from.  So
  2610. adding the encap on the second system solves the problem.
  2611.  
  2612. Here are some examples of the route command:
  2613.  
  2614. # Route datagrams to IP address 44.0.0.3 to SLIP line #0.
  2615. # No gateway is needed because SLIP is point-to point.
  2616. route add 44.0.0.3 sl0
  2617.  
  2618. # Route all default traffic to the gateway on the local Ethernet
  2619. # with IP address 44.0.0.1
  2620. route add default ec0 44.0.0.1
  2621.  
  2622. # The local Ethernet has an ARPA Class-C address assignment;
  2623. # route all IP addresses beginning with 192.4.8 to it
  2624. route add 192.4.8/24 ec0
  2625.  
  2626. # The station with IP address 44.0.0.10 is on the local AX.25 channel
  2627. route add 44.0.0.10 ax0
  2628.  
  2629. # An encapsulation link to 192.4.8.12 where the subnet 44.64.0.0 is
  2630. accessible. The internet does not know where we are but we just use them
  2631. with what they know:
  2632. route add 44.64.0.0/16 encap 192.4.8.12 4
  2633.  
  2634.  
  2635.  
  2636.  
  2637.  
  2638.  
  2639.  
  2640.  
  2641.  
  2642.                                    - 41 -
  2643. 3.74.2.  route addprivate <dest hostid>[/bits] |  default  <iface>  [<gateway
  2644. hostid> [<metric>]]
  2645.  
  2646. This command is identical to route add except that  it  also  marks  the  new
  2647. entry as private; it will never be included in outgoing RIP updates.
  2648.  
  2649. 3.74.3.  route drop <dest hostid>
  2650.  
  2651. route drop deletes an entry from the table.  If  a  packet  arrives  for  the
  2652. deleted address and a default route is in effect, it will be used.
  2653.  
  2654. 3.75.  rspf <subcmd>
  2655.  
  2656. RSPF is the Radio Shortest Path First protocol. Each station listens for  RRH
  2657. (Router  to  Router Hello) messages. When such a RRH message is received, Nos
  2658. will figure out if the link is bi-directional by pinging the  other  station.
  2659. The protocol is described in the RSPF 2.1 specification.
  2660.  
  2661. 3.75.1.  rspf interface <interface> <quality> <horizon>
  2662.  
  2663. <interface> is the required interface rspf should use.  quality is from 1  to
  2664. 127  horizon  is between 1 to 255 End nodes should have the quality set to 1.
  2665. Immediate nodes normaly set the quality to 8. The normaly used value for hor-
  2666. izon is 32.
  2667.  
  2668. 3.75.2.  rspf mode [vc | datagram | none]
  2669.  
  2670. Without arguments, displays the preferred mode for RSPF.  Modes are VC  (Vir-
  2671. tual Cirquit) and Datagram. none resets the preferred mode.
  2672.  
  2673. 3.75.3.  rspf rrhtimer [seconds]
  2674.  
  2675. Without arguments, displays the rrh timer value.
  2676.  
  2677. 3.75.4.  rspf suspecttimer [seconds]
  2678.  
  2679. Without arguments, displays the suspect timer value.
  2680.  
  2681. 3.75.5.  rspf timer [seconds]
  2682.  
  2683. Without arguments, displays the update timer value.
  2684.  
  2685. To activate RSPF, do the following.  Set the broadcast address for the desti-
  2686. nation interface, example ax0.
  2687.     ifconfig ax0 broadcast 44.255.255.255
  2688.  
  2689. This automatically creates a routing entry for 44.255.255.255 in the  routing
  2690. table.  If  intend  to  use RSPF on more than one interface, those interfaces
  2691. must each have different broadcast adresses. Else the routing entries will be
  2692. overwriten by the next definition.
  2693.  
  2694. Configure ax0 as an RSPF interface with horizon 32 and a quality of 1 (hops).
  2695. This is typical for an end node. replace the 1 with an 8 for immediate nodes.
  2696.     rspf interface ax0 1 32
  2697.  Set the interval between RRH messages.
  2698.     rspf rrhtimer 900
  2699.  Define how long it takes until an idle link is suspected to be bad.
  2700.     rspf suspecttimer 2000
  2701.  Set the interval between routing updates.
  2702.     rspf timer 900
  2703.  
  2704.  
  2705.  
  2706.  
  2707.  
  2708.                                    - 42 -
  2709. 3.76.  sccstat
  2710.  
  2711. Display the defined PE1CHL scc driver statistics.
  2712.  
  2713. 3.77.  session [[<session>] [flowmode [on | off]]]
  2714.  
  2715. Without arguments, displays the list of current sessions,  including  session
  2716. number,  remote TCP or AX.25 address and the address of the TCP or AX.25 con-
  2717. trol block.  An asterisk (*) is shown  next  to  the  current  that  session.
  2718. Entering  a session number as an argument to the session command will put you
  2719. in converse mode with that session.  If the Telnet session; entering a  blank
  2720. line at this point puts you in converse mode with server is enabled, the user
  2721. is notified of an incoming request and  a  session  number  is  automatically
  2722. assigned.  The user may then select the session normally to converse with the
  2723. remote user as though the session had been  locally  initiated.   Adding  the
  2724. flowmode  displays  or enables / disables setting of *more* handling for that
  2725. session. This is handy for example by long directory listings comming from an
  2726. ftp  session.  Escaping  to  command  mode before issuing the dir command and
  2727. entering "session # flowmode on" gives a page at a time to look  at.  At  any
  2728. time you can escape out again and switch flowmode off.
  2729.  
  2730. 3.78.  shell
  2731.  
  2732. Suspends Nos and executes a sub-shell  ("command  processor"  under  MS-DOS).
  2733. When the sub-shell exits, Nos resumes (under MS-DOS, enter the exit command).
  2734. Note: see  the  COMSPEC  environement  variable.   Background  activity  (FTP
  2735. servers,  etc)  is also suspended while the subshell executes. Note that this
  2736. will fail unless there is sufficient unused  memory  for  the  sub-shell  and
  2737. whatever command the user tries to run.
  2738.  
  2739. 3.79.  skick #socket
  2740.  
  2741. This is a shorthand for the various kick subcommands. This one  searches  the
  2742. socket for correct type and kicks the transport layer.
  2743.  
  2744. 3.80.  smtp <subcommand>
  2745.  
  2746. These commands are used for the Simple  Message  Transport  Protocol  service
  2747. (that is, mail).
  2748.  
  2749. 3.80.1.  smtp batch [yes | no]
  2750.  
  2751. If set smtp will batch the commands into one frame. When off only one command
  2752. is  send and a response is waited for. Some old and flaky smtp servers cannot
  2753. handle more than one command at a time. Nos can handle multiple. If  you  are
  2754. not hindered by an old smpt server, setting batch reduces bandwith.
  2755.  
  2756. 3.80.2.  smtp gateway [<hostid>]
  2757.  
  2758. Displays or sets the host to be used as a "smart" mail relay. Any  mail  sent
  2759. to  a host not in the host table will instead be sent to the gateway for for-
  2760. warding.
  2761.  
  2762. 3.80.3.  smtp kick
  2763.  
  2764. Run through the outgoing mail queue and attempt to deliver any pending  mail.
  2765. This  command  allows the user to "kick" the mail system manually.  Normally,
  2766. this command is periodically invoked by a timer whenever Nos is running.
  2767.  
  2768.  
  2769.  
  2770.  
  2771.  
  2772.  
  2773.  
  2774.                                    - 43 -
  2775. 3.80.4.  smtp kill [<jobid>]
  2776.  
  2777. Kill the job and delete the message.
  2778.  
  2779. 3.80.5.  smtp list
  2780.  
  2781. List the current jobs. A "L" means locked and in progress.  It is wise to add
  2782. in autoexec.bat a "del /spool/mqueue/*.lck" command
  2783.  
  2784. 3.80.6.  smtp maxclients [<count>]
  2785.  
  2786. Displays or sets the maximum number of simultaneous  outgoing  SMTP  sessions
  2787. that will be allowed. The default is 10; reduce it if network congestion is a
  2788. problem.
  2789.  
  2790. 3.80.7.  smtp mode [queue | route]
  2791.  
  2792. Sets the smtp delivery mode. If queue, all messages are left in /spool/rqueue
  2793. for  external forwarding and handling. If route, messages are handled, if for
  2794. local, appended to a mailbox or if remote, they are forwarded.
  2795.  
  2796. 3.80.8.  smtp mxlookup [yes | no]
  2797.  
  2798. Displays or sets a flag enabling or disabling MX record lookups. This can  be
  2799. enabled if a domain server is available in the near distance (reachable).  It
  2800. should be disabled (default) if no domain server is in reach to  satisfy  the
  2801. MX  query.  Note that MX record handling is very limited in NOS. If an answer
  2802. from a domain name server comes in it is taken to be the destination.
  2803.  
  2804. 3.80.9.  smtp quiet [yes | no]
  2805.  
  2806. Enables or disables the message that new mail arrived at this system.
  2807.  
  2808. 3.80.10.  smtp timer [<seconds>]
  2809.  
  2810. Displays or sets the interval, between scans of the outbound mail queue.  For
  2811. example,  smtp  timer  600  will  cause the system to check for outgoing mail
  2812. every 10 minutes and attempt to deliver anything it finds, subject of  course
  2813. to the smtp maxclients limit. Setting a value of zero disables queue scanning
  2814. altogether, note that this is the default!  This  value  is  recommended  for
  2815. stand  alone IP gateways that never handle mail, since it saves wear and tear
  2816. on the floppy disk drive.
  2817.  
  2818. 3.80.11.  smtp trace [<value>]
  2819.  
  2820. Displays or sets the trace flag in the SMTP client,  allowing  you  to  watch
  2821. SMTP's  conversations as it delivers mail.  Zero (the default) disables trac-
  2822. ing.
  2823.  
  2824. 3.81.  socket [[<socket #>] [flowmode [yes | no]]]
  2825.  
  2826. Without an argument, displays all active  sockets,  giving  their  index  and
  2827. type,  the address of the associated protocol control block and the and owner
  2828. process ID and name. If the index to an active socket is supplied, the status
  2829. display  for  the appropriate protocol is called.  For example, if the socket
  2830. refers to a TCP connection, the display will be that given by the tcp  status
  2831. command  with  the  protocol  control block address.  Flow mode can be set or
  2832. cleared on a session if so wanted. This comes in handy when a large directory
  2833. is  displayed  by ftp. Escaping from the session just before entering dir and
  2834. setting flowmode and returning to that session, gives a screen full at a time
  2835. with -more- processing.
  2836.  
  2837.  
  2838.  
  2839.  
  2840.                                    - 44 -
  2841. 3.82.  source <filename>
  2842.  
  2843. Read subsequent commands from filename until EOF. Then  resume  reading  com-
  2844. mands  from  the previous stream. This can be used to keep routing statements
  2845. in a separate file, wich can be read at some point in autoexec.nos.
  2846.  
  2847. 3.83.  start ax25 | discard | echo | finger | ftp | netrom | remote |  pop  |
  2848. rip | smtp | telnet | tip | ttylink
  2849.  
  2850. Start the specified Internet server, allowing remote connection requests.
  2851.  
  2852. 3.84.  status
  2853.  
  2854. Displays load information on Nos. When started, how long running, open  files
  2855. etc.
  2856.  
  2857. 3.85.  stop ax25 | discard | echo | finger | ftp | netrom | remote  |  pop  |
  2858. rip | smtp | telnet | tip | ttylink
  2859.  
  2860. Stop the specified Internet server,  rejecting  any  further  remote  connect
  2861. requests. Existing connections are allowed to complete normally.
  2862.  
  2863. 3.86.  tail <filename>
  2864.  
  2865. This does a more on the last couple of lines of file filename.
  2866.  
  2867. 3.87.  tcp <subcommand>
  2868.  
  2869. These commands are used for the Transmission Control Protocol service.
  2870.  
  2871. 3.87.1.  tcp irtt [<milliseconds>]
  2872.  
  2873. Display or set the initial round trip time estimate, in milliseconds,  to  be
  2874. used  for  new TCP connections until they can measure and adapt to the actual
  2875. value.  The default is 5000 milliseconds (5 seconds).  Increasing  this  when
  2876. operating  over  slow  channels will avoid the flurry of retransmissions that
  2877. would otherwise occur as the smoothed estimate settles down  at  the  correct
  2878. value.  Note  that this command should be given before servers are started in
  2879. order for it to have effect on incoming connections.
  2880.  
  2881. TCP also keeps a cache of measured  round  trip  times  and  mean  deviations
  2882. (MDEV)  for current and recent destinations. Whenever a new TCP connection is
  2883. opened, the system first looks in this cache. If the  destination  is  found,
  2884. the cached IRTT and MDEV values are used. If not, the default IRTT value men-
  2885. tioned above is used, along  with  a  MDEV  of  0.   This  feature  is  fully
  2886. automatic,  and  it  can improve performance greatly when a series of connec-
  2887. tions are opened and closed to a given destination (eg. a series of FTP  file
  2888. transfers or directory listings).
  2889.  
  2890. 3.87.2.  tcp kick <tcb_addr>
  2891.  
  2892. If there is unacknowledged data on the send queue of the specified TCB,  this
  2893. command forces an immediate retransmission.
  2894.  
  2895. 3.87.3.  tcp mss [<size>]
  2896.  
  2897. Display or set the TCP Maximum Segment Size in bytes that will be sent on all
  2898. outgoing  TCP  connect request (SYN segments).  This tells the remote end the
  2899. size of the largest segment (packet) it may send. Changing MSS  affects  only
  2900. future connections; existing connections are unaffected.
  2901.  
  2902.  
  2903.  
  2904.  
  2905.  
  2906.                                    - 45 -
  2907. 3.87.4.  tcp reset <tcb_addr>
  2908.  
  2909. Deletes the TCP control block at the specified address.
  2910.  
  2911. 3.87.5.  tcp rtt <tcb_addr> <milliseconds>
  2912.  
  2913. Replaces the automatically computed round trip time in the specified TCB with
  2914. the  rtt in milliseconds.  This command is useful to speed up recovery from a
  2915. series of lost packets since it provides a manual bypass  around  the  normal
  2916. backoff retransmission timing mechanisms.
  2917.  
  2918. 3.87.6.  tcp status [<tcb_addr>]
  2919.  
  2920. Without arguments, displays several TCP-level statistics, plus a  summary  of
  2921. all  existing  TCP connections, including TCB address, send and receive queue
  2922. sizes, local and remote sockets, and connection state. If tcb_addr is  speci-
  2923. fied,  a more detailed dump of the specified TCB is generated, including send
  2924. and receive sequence numbers and timer information.
  2925.  
  2926. 3.87.7.  tcp syndata [yes | no]
  2927.  
  2928. Display or set the tcp syn + data pigybacking flag. Some tcp  systems  cannot
  2929. handle syn + data together.
  2930.  
  2931. 3.87.8.  tcp timertype [linear | exponential]
  2932.  
  2933. Displays the current setting or sets the timer type backoff algoritm.
  2934.  
  2935. 3.87.9.  tcp trace [yes | no]
  2936.  
  2937. Display or set the tcp trace flag on or off.
  2938.  
  2939. 3.87.10.  tcp window [<size>]
  2940.  
  2941. Displays or sets the default receive window size in bytes to be used  by  TCP
  2942. when creating new connections. Existing connections are unaffected.
  2943.  
  2944. 3.88.  telnet <hostid> [<port>]
  2945.  
  2946. Creates a Telnet session to the specified host and enters converse mode.   If
  2947. <port> is given that number is used. Default port is 23.
  2948.  
  2949. 3.89.  test
  2950.  
  2951. Start an internal test for an overflow problem that might appear in the clock
  2952. function of some AT computers.
  2953.  
  2954. 3.90.  thirh-party [yes | no]
  2955.  
  2956. This is a restriction setter  for  some  countries  where  stations  are  not
  2957. allowed to handle thirth party mail traffic.
  2958.  
  2959. 3.91.  ttylink <hostid> [<port>]
  2960.  
  2961. Creates a Telnet session to the specified host and enters converse mode.   If
  2962. <port>  is  given that number is used. Default port is 87.  This uses a split
  2963. screen interface for easy conversation.
  2964.  
  2965.  
  2966.  
  2967.  
  2968.  
  2969.  
  2970.  
  2971.  
  2972.                                    - 46 -
  2973. 3.92.  tip <iface>
  2974.  
  2975. Creates a tip session that connects to the specified interface in "dumb  ter-
  2976. minal"  mode.   The interface must have already been attached with the attach
  2977. command.  Any packet traffic (IP datagrams,  etc)  routed  to  the  interface
  2978. while this session exists will be discarded.  To close a tip session, use the
  2979. reset command. It will then revert to normal slip, nrs or  kiss  mode  opera-
  2980. tion.
  2981.  
  2982. This feature is primarily useful for manually establishing SLIP  connections.
  2983. At present, only the built-in "com" ports can be used with this command.
  2984.  
  2985. 3.93.  trace [<iface> [off | <btio> [<tracefile>]]]
  2986.  
  2987. Controls packet tracing by the interface drivers. Specific bits enable  trac-
  2988. ing  of the various interfaces and the amount of information produced.  Trac-
  2989. ing is controlled on a per-interface basis; without arguments, trace gives  a
  2990. list  of all defined interfaces and their tracing status.  Output can be lim-
  2991. ited to a single interface by specifying it, and the  control  flags  can  be
  2992. change  by  specifying  them  as  well.  The flags are given as a hexadecimal
  2993. number which is interpreted as follows:
  2994.  
  2995.     O - Enable tracing of output packets if 1, disable if 0
  2996.     I - Enable tracing of input packets if 1, disable if 0
  2997.     T - Controls type of tracing:
  2998.         0 - Protocol headers are decoded, but data is not displayed
  2999.         1 - Protocol headers are decoded, and data (but not the
  3000.             headers themselves) are displayed as ASCII characters,
  3001.             64 characters/line. Unprintable characters are displayed
  3002.             as periods.
  3003.         2 - Protocol headers are decoded, and the entire packet
  3004.             (headers AND data) is also displayed in hexadecimal
  3005.             and ASCII, 16 characters per line.
  3006.     B - Broadcast filter flag. If set, only packets specifically addressed
  3007.         to this node will be traced; broadcast packets will not be displayed.
  3008.  
  3009. If tracefile is not specified, tracing will be to the console.
  3010.  
  3011. 3.94.  udp status
  3012.  
  3013. 3.95.  verbose [0 | 1 | 2 | 3]
  3014.  
  3015. Set or display the level of message output  in  file  transfers.   Verbose  0
  3016. gives the least output, and verbose 3 the most, as follows:
  3017.  
  3018. 0 - Display error messages only.
  3019. 1 - Display error messages plus a one-line summary after each transfer
  3020.     giving the name of the file, its size, and the transfer time and rate.
  3021. 2 - Display error and summary messages plus the progress messages generated
  3022.     by the remote FTP server. (This setting is the default.)
  3023. 3 - Display all messages. In addition, a "hash mark" (#) is displayed for
  3024.     every 1,000 bytes sent or received.
  3025.  
  3026. If a command is sent to the  remote  server  because  it  is  not  recognized
  3027. locally,  the response is always displayed, regardless of the setting of ver-
  3028. bose.  This is necessary for commands like pwd (display  working  directory),
  3029. which  would  otherwise produce no message at all if verbose were set to 0 or
  3030. 1.
  3031.  
  3032. Displays the status of all UDP receive queues.
  3033.  
  3034.  
  3035.  
  3036.  
  3037.  
  3038.                                    - 47 -
  3039. 3.96.  upload [<filename>]
  3040.  
  3041. Opens filename and sends it on the current session as though it were typed on
  3042. the terminal.
  3043.  
  3044. 3.97.  watch
  3045.  
  3046. Displays the current software stopwatch values, with min and max readings for
  3047. each.  This  facility  allows  a  programmer to measure the execution time of
  3048. critical sections of code with microsecond resolution.  This command is  sup-
  3049. ported only on the IBM PC, and the meaning of each stopwatch value depends on
  3050. where the calls have been inserted for test purposes; the  distribution  copy
  3051. of nos usually has no stopwatch calls.
  3052.  
  3053. 3.98.  watchdog [on | off]
  3054.  
  3055. Enables or disables the watchdog timer. If internal operations cease for  300
  3056. second  and  watchdog is enabled, a system reset is performed. See the remote
  3057. command for setting up autoexec.bat.
  3058.  
  3059. 3.99.  ?
  3060.  
  3061. Same as the help command.
  3062.  
  3063.  
  3064.  
  3065.  
  3066.  
  3067.  
  3068.  
  3069.  
  3070.  
  3071.  
  3072.  
  3073.  
  3074.  
  3075.  
  3076.  
  3077.  
  3078.  
  3079.  
  3080.  
  3081.  
  3082.  
  3083.  
  3084.  
  3085.  
  3086.  
  3087.  
  3088.  
  3089.  
  3090.  
  3091.  
  3092.  
  3093.  
  3094.  
  3095.  
  3096.  
  3097.  
  3098.  
  3099.  
  3100.  
  3101.  
  3102.  
  3103.  
  3104.                                    - 48 -
  3105. 4.  Attach Commands
  3106.  
  3107. This chapter details the attach commands for the various  hardware  interface
  3108. drivers.  Not all of these drivers may be configured into every Nos binary; a
  3109. list of the available types may be obtained by entering the command attach ?.
  3110.  
  3111. Some parameters are accepted by several drivers. They are:
  3112.  
  3113. 4.0.1.  <bufsize>
  3114.  
  3115. For asynchronous devices (eg. COM ports operating in SLIP or NRS  mode)  this
  3116. parameter  specifies  the  size  of the receiver's ring buffer.  It should be
  3117. large enough to hold incoming data at full line speed for  the  longest  time
  3118. that  the system may be busy in MS-DOS or the BIOS doing a slow I/O operation
  3119. (eg. to a floppy disk). A kilobyte is usually more than sufficient.
  3120.  
  3121. For synchronous devices (eg. the scc, hs, pc100,  hapn  and  drsi  interfaces
  3122. operating  in  HDLC mode), the bufsize parameter specifies the largest packet
  3123. that may be received on the interface.  This should be set by  mutual  agree-
  3124. ment  among  stations  sharing the channel. For standard AX.25 with a maximum
  3125. I-frame data size of 256 bytes, a value of 325  should  provide  an  adequate
  3126. safety  margin.  On  higher speed channels (eg. 56kb/s) larger values (eg. 2K
  3127. bytes) will provide much better performance  and  allow  full-sized  Ethernet
  3128. packets to be carried without fragmentation.
  3129.  
  3130. 4.0.2.  <ioaddr>
  3131.  
  3132. The base address of the interface's control registers, in hex.
  3133.  
  3134. 4.0.3.  <vector>
  3135.  
  3136. The interface's hardware interrupt (IRQ) vector, in hex.
  3137.  
  3138. 4.0.4.  <iface>
  3139.  
  3140. The name (an arbitrary character string) to be assigned to this interface. It
  3141. is used to refer to the interface in ifconfig and route commands and in trace
  3142. output.
  3143.  
  3144. 4.0.5.  <mtu>
  3145.  
  3146. The Maximum Transmission Unit size, in bytes.   Datagrams  larger  than  this
  3147. limit  will  be  fragmented at the IP layer into smaller pieces. For AX.25 UI
  3148. frames, this limits the size of the information field.  For AX.25  I  frames,
  3149. however,  the  ax25  paclen  parameter  is also relevant.  If the datagram or
  3150. fragment is still larger than paclen, it is  also  fragmented  at  the  AX.25
  3151. level (as opposed to the IP level) before transmission.  (See the ax25 paclen
  3152. command for further information).
  3153.  
  3154. 4.0.6.  <speed>
  3155.  
  3156. The speed in bits per second (eg. 2400).
  3157.  
  3158. 4.1.  attach 3c500 <ioaddr> <vector> arpa <iface> <qlen> <mtu> [<ip_addr>]
  3159.  
  3160. Attach a 3Com 3C501  Ethernet  interface.   qlen  is  the  maximum  allowable
  3161. transmit  queue  length.   If  the  ip_addr parameter is not given, the value
  3162. associated with a prior ip address command will be used.
  3163.  
  3164. The use of this driver is not recommended; use the  packet  driver  interface
  3165. with the loadable 3C501 packet driver instead.
  3166.  
  3167.  
  3168.  
  3169.  
  3170.                                    - 49 -
  3171. 4.2.  attach asy <ioaddr> <vector> ax25 | nrs | ppp | slip <iface>  <bufsize>
  3172. <mtu> <speed> [<vf>]
  3173.  
  3174. Attach a standard  PC  "com  port"  (asynchronous  serial  port),  using  the
  3175. National  8250  or 16550A chip.  Standard values on the IBM PC and clones for
  3176. ioaddr and vector are 0x3f8 and 4 for COM1, and 0x2f8 and 3 for COM2.  If the
  3177. port  uses  a  16550A  chip,  it will be detected automatically and the FIFOs
  3178. enabled.
  3179.  
  3180. 4.2.1.  ax25
  3181.  
  3182. Similar to slip, except that an AX.25 header and a KISS  TNC  control  header
  3183. are added to the front of the datagram before SLIP encoding.  Either UI (con-
  3184. nectionless) or I (connection-oriented) AX.25 frames can  be  used;  see  the
  3185. mode command for details.
  3186.  
  3187. 4.2.2.  nrs
  3188.  
  3189. Use the NET/ROM asynchronous framing technique for communication with a local
  3190. NET/ROM TNC.
  3191.  
  3192. 4.2.3.  ppp
  3193.  
  3194. Point-to-Point-Protocol.  Encapsulates datagrams in an HDLC-like frame.  This
  3195. is  a new Internet standard for point-to-point communication, compatible with
  3196. CCITT standards.
  3197.  
  3198. 4.2.4.  slip
  3199.  
  3200. Serial Line Internet Protocol.  Encapsulates IP datagrams  directly  in  SLIP
  3201. frames  without  a link header. This is for operation on point-to-point lines
  3202. and is compatible with 4.2BSD UNIX SLIP.
  3203.  
  3204. 4.2.5.  <vf>
  3205.  
  3206. The optional flags are a string of the characters "vf":  v enables Van Jacob-
  3207. son TCP/IP Header Compression, and is valid only for SLIP.  f forces the fifo
  3208. on for 16550AFN compatible chips not hindered by the  original  "design  bug"
  3209. and not needing the work-around. Unfortunate these good chips don't get their
  3210. fifo enabled. Specifying f on the attach line forces the  fifo  to  be  used.
  3211. (unpredictable results occure when specified on a non 16550 type chip).
  3212.  
  3213. 4.3.  attach axip <iface> <mtu> <ip_addr> <callsign>
  3214.  
  3215. This creates a RFC1226 compatible AX.25 frame encapsulator  for  transmission
  3216. of  AX.25  frames over the Internet. Iface will be the name of the interface,
  3217. ip_addr the address of the remote system and callsign the AX.25 callsign this
  3218. station is listening on for frames to digipeat.  Note that each attached axip
  3219. interface should have a different callsign to listen to and this should  also
  3220. be different from other callsign's used on this station.
  3221.  
  3222. 4.4.  attach drsi <ioaddr> <vector> ax25 <iface> <bufsize> <mtu> <ch_a_speed>
  3223. <ch_b_speed>
  3224.  
  3225. N6TTO driver for the Digital Radio Systems PCPA 8530 card.  Since  there  are
  3226. two  channels  on the board, two interfaces are attached.  They will be named
  3227. iface with 'a' and 'b' appended.  bufsize is  the  receiver  buffer  size  in
  3228. bytes;  it  must be larger than the largest frame to be received.  ch_a_speed
  3229. and ch_b_speed are the speeds, in bits/sec, for the A and B channels, respec-
  3230. tively.
  3231.  
  3232.  
  3233.  
  3234.  
  3235.  
  3236.                                    - 50 -
  3237. 4.5.  attach eagle <ioaddr> <vector> ax25 <iface> <bufsize> <mtu> <speed>
  3238.  
  3239. WA3CVG/NG6Q driver for the Eagle Computer card (Zilog 8530).
  3240.  
  3241. 4.6.  attach hapn <ioaddr> <vector> ax25 <iface> <bufsize> <mtu> csma | full
  3242.  
  3243. KE3Z driver for the Hamilton Amateur Packet  Network  adapter  (Intel  8273).
  3244. The  csma  | full parameter specifies whether the port should operate in car-
  3245. rier sense multiple access (CSMA) mode or in full duplex.
  3246.  
  3247. 4.7.  attach hs <ioaddr> <vector> ax25 <iface> <bufsize> <mtu>  <keyup_delay>
  3248. <p>
  3249.  
  3250. Attach a DRSI PCPA or Eagle Computer interface card  using  a  special  "high
  3251. speed"  8530  driver.   This  driver uses busy-wait loops to send and receive
  3252. each byte instead of interrupts, making it  usable  with  high  speed  modems
  3253. (such  as  the WA4DSY 56kb/s modem) on slow systems.  This does have the side
  3254. effect of "freezing" the system whenever the modem transmitter or receiver is
  3255. active.   This  driver  can  operate only in CSMA mode, and it is recommended
  3256. that no other interfaces requiring small interrupt latencies be  attached  to
  3257. the same machine.
  3258.  
  3259. The keyup_delay parameter specifies the transmitter keyup delay in byte  time
  3260. intervals.  The  p  value  specifies the transmitter persistence value in the
  3261. range 1-255; the corresponding slot time is fixed at one hardware clock tick,
  3262. about 55 ms on the PC.
  3263.  
  3264. As with the other 8530 drivers, this driver actually attaches two interfaces,
  3265. one for each 8530 channel.
  3266.  
  3267. 4.8.  attach packet <intvec> <iface> <txqlen> <mtu>
  3268.  
  3269. Driver for use with  separate  software  "packet  drivers"  meeting  the  FTP
  3270. Software,  Inc,  Software  Packet Driver specification.  The driver must have
  3271. already been installed before the attach command is given. Packet drivers  in
  3272. the Ethernet, ARCNET, SLIP, SLFP, and KISS/AX25 classes are supported.
  3273.  
  3274. intvec is the software interrupt vector used for communication to the  packet
  3275. driver,  and  txqlen is the maximum number of packets that will be allowed on
  3276. the transmit queue.
  3277.  
  3278. 4.9.  attach pc100 <ioaddr> <vector> ax25 <iface> <bufsize> <speed>
  3279.  
  3280. Driver for the PACCOMM PC-100 (Zilog 8530) card.   Only  AX.25  operation  is
  3281. supported.
  3282.  
  3283. 4.10.  attach scc <devices> init <addr>  <spacing>  <Aoff>  <Boff>  <Dataoff>
  3284. <intack> <vec> [p | r]<clock> [<hdwe>] [<param>]
  3285.  
  3286. PE1CHL driver to initialize a generic SCC (8530)  interface  board  prior  to
  3287. actually attaching it. The parameters are as follows:
  3288.  
  3289. 4.10.1.  <devices>
  3290.  
  3291. The number of SCC chips to support.
  3292.  
  3293. 4.10.2.  <addr>
  3294.  
  3295. The base address of the first SCC chip (hex).
  3296.  
  3297.  
  3298.  
  3299.  
  3300.  
  3301.  
  3302.                                    - 51 -
  3303. 4.10.3.  <spacing>
  3304.  
  3305. The spacing between the SCC chip base addresses.
  3306.  
  3307. 4.10.4.  <Aoff>
  3308.  
  3309. The offset from a chip's base address to its channel A control register.
  3310.  
  3311. 4.10.5.  <Boff>
  3312.  
  3313. The offset from a chip's base address to its channel B control register.
  3314.  
  3315. 4.10.6.  <Dataoff>
  3316.  
  3317. The offset from each channel's control register to its data register.
  3318.  
  3319. 4.10.7.  <intack>
  3320.  
  3321. The address of the INTACK/Read Vector port. If none, specify 0 to  read  from
  3322. RR3A/RR2B.
  3323.  
  3324. 4.10.8.  <vec>
  3325.  
  3326. The CPU interrupt vector for all connected SCCs.
  3327.  
  3328. 4.10.9.  <clock>
  3329.  
  3330. The clock frequency (PCLK/RTxC) of all SCCs in hertz.  Prefix  with  'p'  for
  3331. PCLK, 'r' for RTxC clock (for baudrate gen).
  3332.  
  3333. 4.10.10.  <hdwe>
  3334.  
  3335. Optional hardware type. The following values are currently  supported:   1  -
  3336. Eagle  card,  2  -  PACCOMM PC-100, 4 - PRIMUS-PC card (DG9BL), 8 - DRSI PCPA
  3337. card.
  3338.  
  3339. 4.10.11.  <param>
  3340.  
  3341. Optional extra parameter. At present, this is used only with the  PC-100  and
  3342. PRIMUS-PC cards to set the modem mode. The value 0x22 is used with the PC-100
  3343. and 0x2 is used with the PRIMUS-PC card.
  3344.  
  3345. The attach scc ... init command must be given before the interfaces are actu-
  3346. ally attached with the following command.
  3347.  
  3348. 4.11.  attach scc <chan> slip | kiss | nrs | ax25 <iface> <mtu> <speed> <buf-
  3349. size> [<call>]
  3350.  
  3351. Attach an initialized SCC port to the system. The parameters are as follows:
  3352.  
  3353. 4.11.1.  <chan>
  3354.  
  3355. The SCC channel number to attach, 0 or 1 for the first chip's A or B port,  2
  3356. or 3 for the second chip's A or B port, etc.
  3357.  
  3358. 4.11.2.  slip | kiss | nrs | ax25
  3359.  
  3360. The operating mode of the interface. slip, kiss and nrs all operate the  port
  3361. hardware in asynchronous mode; slip is Internet-standard serial line IP mode,
  3362. kiss generates SLIP frames containing KISS TNC commands and AX.25 packets and
  3363. nrs  uses  NET/ROM  local  serial  link  framing conventions to carry NET/ROM
  3364.  
  3365.  
  3366.  
  3367.  
  3368.                                    - 52 -
  3369. packets. Selecting ax25 mode puts the interface into  synchronous  HDLC  mode
  3370. that is suitable for direct connection to a half duplex radio modem.
  3371.  
  3372. 4.11.3.  <speed>
  3373.  
  3374. The interface speed in bits per second (eg. 1200).  Prefix with 'd'  when  an
  3375. external divider is available to generate the TX clock. When the clock source
  3376. is PCLK, this can be a /32 divider between TRxC and RTxC. When the  clock  is
  3377. at  RTxC,  the TX rate must be supplied at TRxC. This is needed only for full
  3378. duplex synchronous operation. When this arg is given as 'ext',  the  transmit
  3379. and  receive  clocks are external, and the internal baud rate generator (BRG)
  3380. and digital phase locked loop (DPLL) are not used.
  3381.  
  3382.  
  3383.  
  3384.  
  3385.  
  3386.  
  3387.  
  3388.  
  3389.  
  3390.  
  3391.  
  3392.  
  3393.  
  3394.  
  3395.  
  3396.  
  3397.  
  3398.  
  3399.  
  3400.  
  3401.  
  3402.  
  3403.  
  3404.  
  3405.  
  3406.  
  3407.  
  3408.  
  3409.  
  3410.  
  3411.  
  3412.  
  3413.  
  3414.  
  3415.  
  3416.  
  3417.  
  3418.  
  3419.  
  3420.  
  3421.  
  3422.  
  3423.  
  3424.  
  3425.  
  3426.  
  3427.  
  3428.  
  3429.  
  3430.  
  3431.  
  3432.  
  3433.  
  3434.                                    - 53 -
  3435. 4.12.  Attach Examples
  3436.  
  3437. Here are some examples of the attach command:
  3438.  
  3439.  
  3440. # Attach a 3Com Ethernet controller using the standard 3Com address and
  3441. # vector (i.e., as it comes out of the box) to use ARPA-standard encapsulation.
  3442. # The receive queue is limited to 5 packets, and outgoing packets larger
  3443. # than 1500 bytes will be fragmented
  3444. attach 3c500 0x300 3 arpa ec0 5 1500
  3445.  
  3446. # Attach the PC asynch card normally known as "com1" (the first controller)
  3447. # to operate in point-to-point slip mode at 9600 baud, calling it "sl0".
  3448. # A 1024 byte receiver ring buffer is allocated. Outgoing packets larger
  3449. # than 256 bytes are fragmented.
  3450. attach asy 0x3f8 4 slip sl0 1024 256 9600
  3451.  
  3452. # Attach the secondary PC asynch card ("com2") to operate in AX.25 mode
  3453. # with an MTU of 576 bytes at 9600 baud with a KISS TNC, calling it "ax0".
  3454. # By default, IP datagrams are sent in UI frames
  3455. attach asy 0x2f8 3 ax25 ax0 1024 576 9600
  3456.  
  3457. # Attach a axip wormhole
  3458. attach axip ai0 256 129.179.122.10 pa0gri-11
  3459. # on the other side of the wormhole
  3460. attach axip ai0 256 129.179.122.130 pa0gri-12
  3461. # Now assume 129.179.122.10 has a AX.25 interface with callsign pa0gri-10
  3462. # and 129.179.122.130 a interface with callsign pa0gri-8
  3463. # Now a AX.25 frame like:
  3464. # pe1chl->pa0gri-11->pa0gri-8->pe1dna [ data]
  3465. # Received by pa0gri-11, set the has-been-digipeated change the interface
  3466. # callsign with the one it realy came in from and ecapsulates it
  3467. # in a IP frame type 93 and ships it to 129.179.122.130
  3468. # pe1chl->pa0gri-10*->pa0gri-8->pe1dna [ data]
  3469. # Arived at 129.179.122.130 the next digi is searched for and found.
  3470. # The frame is changed into:
  3471. # pe1chl->pa0gri-10*->pa0gri-12*->pe1dna [ data]
  3472. # so that on the way back the frame will find the "right" interface.
  3473.  
  3474. # Attach the packet driver loaded at interrupt 0x7e
  3475. # The packet driver is for an Ethernet interface
  3476. attach packet 0x7e ethernet 8 1500
  3477.  
  3478.  
  3479.  
  3480.  
  3481.  
  3482.  
  3483.  
  3484.  
  3485.  
  3486.  
  3487.  
  3488.  
  3489.  
  3490.  
  3491.  
  3492.  
  3493.  
  3494.  
  3495.  
  3496.  
  3497.  
  3498.  
  3499.  
  3500.                                    - 54 -
  3501. 5.  FTP Subcommands
  3502.  
  3503. During converse mode with an FTP server, everything typed on the  console  is
  3504. first  examined  to see if it is a locally-known command. If not, the line is
  3505. passed intact to the remote server on the control channel. If it  is  one  of
  3506. the following commands, however, it is executed locally. (Note that this gen-
  3507. erally involves other commands being sent to the remote server on the control
  3508. channel.)
  3509.  
  3510. 5.1.  dir [<file> | <directory> [<local file>]]
  3511.  
  3512. Without arguments, dir requests that a full directory listing of  the  remote
  3513. server's  current  directory  be  sent  to  the terminal.  If one argument is
  3514. given, this is passed along in the LIST command; this can be a specific  file
  3515. or  subdirectory  that  is meaningful to the remote file system. If two argu-
  3516. ments are given, the second is taken as the local file into which the  direc-
  3517. tory  listing should be put (instead of being sent to the console).  The PORT
  3518. command is used before the LIST command is sent.
  3519.  
  3520. 5.2.  get <remote file> [<local file>]
  3521.  
  3522. Asks the remote server to send the file specified in the first argument.  The
  3523. second argument, if given, will be the name of the file on the local machine;
  3524. otherwise it will have the same name as on the remote machine.  The PORT  and
  3525. RETR commands are sent on the control channel.
  3526.  
  3527. 5.3.  hash
  3528.  
  3529. A synonym for the verbose 3 command.
  3530.  
  3531. 5.4.  ls [<file> | <directory> [<local file>]]
  3532.  
  3533. ls is identical to the dir command except that the "NLST" command is sent  to
  3534. the  server  instead  of  the  "LIST" command. This results in an abbreviated
  3535. directory listing, i.e., one showing only the file names  themselves  without
  3536. any other information.
  3537.  
  3538. 5.5.  mget <file> [<file> ...]
  3539.  
  3540. Fetch a collection of files from the server. File names may include wild card
  3541. characters; they will be interpreted and expanded into a list of files by the
  3542. remote system using the NLST command. The files will have the  same  name  on
  3543. the local system that they had on the server.
  3544.  
  3545. 5.6.  mkdir <remote directory>
  3546.  
  3547. Creates a directory on the remote machine.
  3548.  
  3549. 5.7.  mput <file> [<file> ...]
  3550.  
  3551. Send a collection of files to the server. File names may  include  wild  card
  3552. characters;  they  will  be expanded locally into a list of files to be sent.
  3553. The files will have the same name on the server as on the local system.
  3554.  
  3555. 5.8.  put <local file> [<remote file>]
  3556.  
  3557. Asks the remote server to accept data, creating the file named in  the  first
  3558. argument.  The second argument, if given, will be the name of the file on the
  3559. remote machine; otherwise it will have the same name as on the local machine.
  3560. The PORT and STOR commands are sent on the control channel.
  3561.  
  3562.  
  3563.  
  3564.  
  3565.  
  3566.                                    - 55 -
  3567. 5.9.  rmdir <remote directory>
  3568.  
  3569. Deletes a directory on the remote machine.
  3570.  
  3571. 5.10.  type [a | i | l <bytesize>]
  3572.  
  3573. Tells both the local client and remote server the type of file that is to  be
  3574. transferred.   The  default,  (wich can be changed with the ftype command) is
  3575. 'a', which means ASCII (i.e., a text file).   Type  'i'  means  image,  i.e.,
  3576. binary.   In  ASCII  mode,  files are sent as varying length lines of text in
  3577. ASCII separated by cr/lf sequences; in IMAGE mode, files are sent exactly  as
  3578. they appear in the file system.  ASCII mode should be used whenever transfer-
  3579. ring text between dissimilar systems (e.g., UNIX and MS-DOS) because of their
  3580. different  end-of-line  and/or end-of-file conventions.  When exchanging text
  3581. files between machines of the same type, either mode will work but IMAGE mode
  3582. is usually faster.  Naturally, when exchanging raw binary files (executables,
  3583. compressed archives, etc) IMAGE mode must be used.  Type  'l'  (logical  byte
  3584. size) is used when exchanging binary files with remote servers having oddball
  3585. word sizes (e.g., DECSYSTEM-10s and  20s).  Locally  it  works  exactly  like
  3586. IMAGE,  except that it notifies the remote system how large the byte size is.
  3587. bytesize is typically 8.  The type command sets the local transfer  mode  and
  3588. generates the TYPE command on the control channel.
  3589.  
  3590. 5.11.  verbose [0 | 1 | 2 | 3]
  3591.  
  3592. Set or display the level of message output  in  file  transfers.   Verbose  0
  3593. gives the least output, and verbose 3 the most, as follows:
  3594.  
  3595. 0 - Display error messages only.
  3596. 1 - Display error messages plus a one-line summary after each transfer
  3597.     giving the name of the file, its size, and the transfer time and rate.
  3598. 2 - Display error and summary messages plus the progress messages generated
  3599.     by the remote FTP server. (This setting is the default.)
  3600. 3 - Display all messages. In addition, a "hash mark" (#) is displayed for
  3601.     every 1,000 bytes sent or received.
  3602.  
  3603. If a command is sent to the  remote  server  because  it  is  not  recognized
  3604. locally,  the response is always displayed, regardless of the setting of ver-
  3605. bose.  This is necessary for commands like pwd (display  working  directory),
  3606. which  would  otherwise produce no message at all if verbose were set to 0 or
  3607. 1.
  3608.  
  3609.  
  3610.  
  3611.  
  3612.  
  3613.  
  3614.  
  3615.  
  3616.  
  3617.  
  3618.  
  3619.  
  3620.  
  3621.  
  3622.  
  3623.  
  3624.  
  3625.  
  3626.  
  3627.  
  3628.  
  3629.  
  3630.  
  3631.  
  3632.                                    - 56 -
  3633. 6.  Dialer Subcommands
  3634.  
  3635. Each dialer command may (should) have a  different  dialer  file.   The  file
  3636. resides in the configuration directory, as specified in the Installation sec-
  3637. tion (see chapter 1).  A typical dialer file might be:
  3638.  
  3639.         # Set the speed, and toggle DTR to ensure modem is in command mode.
  3640.         control down
  3641.         wait 3000
  3642.         speed 2400
  3643.         control up
  3644.         wait 3000
  3645.         # Dial, and wait for connection
  3646.         send "atdt555-1212"
  3647.         wait 45000 "CONNECT " speed
  3648.         wait 2000
  3649.         # PAD specific initialization
  3650.         send ""
  3651.         wait 15000 "Terminal ="
  3652.         send "ppp"
  3653.         wait 10000 "
  3654.  
  3655.  
  3656. 6.0.1.  control down | up
  3657.  
  3658. Control asy interface.  The down option drops DTR and  RTS.   The  up  option
  3659. asserts DTR and RTS.
  3660.  
  3661. 6.0.2.  send "string"
  3662.  
  3663. This dialer command will write the specified string to  the  interface.   The
  3664. string quote marks are required, and the string may not contain embedded con-
  3665. trol characters.  However, the standard C string escape sequences are  recog-
  3666. nized (\0 should not be used).
  3667.  
  3668. 6.0.3.  speed [ 9600 | 4800 | 2400 | 1200 | 300 ]
  3669.  
  3670. This dialer command will set the speed of the interface to one of the  avail-
  3671. able  speeds.   If  the  speed is missing, the speed will be displayed in the
  3672. dialer session window.
  3673.  
  3674. 6.0.4.  wait <milliseconds> [ "test string" ] [ speed ]
  3675.  
  3676. If only the time is specified, the dialer pauses for the  desired  number  of
  3677. milliseconds.
  3678.  
  3679. Otherwise, the dialer reads until the test string is detected on  the  inter-
  3680. face.   If the string is not detected within the desired time, the autodialer
  3681. will reset.  The string quote marks are required, and the string may not con-
  3682. tain  embedded  control  characters.   However,  the standard C string escape
  3683. sequences are recognized (\0 should not be used).
  3684.  
  3685. Finally, if the speed parameter is specified, the  dialer  will  continue  to
  3686. read  characters until a non-digit is detected.  The string read is converted
  3687. to an integer, and used to set the interface speed.   If  the  trailing  non-
  3688. digit  is not detected within the desired time, or the integer value is not a
  3689. valid speed, the autodialer will reset.
  3690.  
  3691.  
  3692.  
  3693.  
  3694.  
  3695.  
  3696.  
  3697.  
  3698.                                    - 57 -
  3699. 7.  Installation
  3700.  
  3701. Nos uses the following file and directory structure:
  3702.  
  3703.         ~/alias
  3704.         ~/autoexec.nos
  3705.         ~/dialer
  3706.         ~/domain.txt
  3707.         ~/ftpusers
  3708.         ~/net.rc
  3709.         ~/netron.sav
  3710.         ~/popusers
  3711.         ~/finger/
  3712.         ~/spool/areas
  3713.         ~/spool/mail.log
  3714.         ~/spool/net.log
  3715.         ~/spool/forward.bbs
  3716.         ~/spool/history
  3717.         ~/spool/rewrite
  3718.         ~/spool/help/
  3719.         ~/spool/mail/
  3720.         ~/spool/mqueue/
  3721.         ~/spool/news/
  3722.         ~/spool/rqueue/
  3723.         ~/spool/signatur/
  3724.  
  3725.  
  3726. The ~ in front of all files is a  directory  offset  definable  with  the  -d
  3727. option  on the Nos command line. Any name may be chosen and is default empty.
  3728. (eg. just /) If for example  -d  /net  is  given,  the  structure  shifts  to
  3729. /net/...   The  alias,  autoexec.nos, dialer, domain.txt net.rc, popusers and
  3730. ftpusers configuration files are located here.  The netrom.sav file  will  be
  3731. created there.
  3732.  
  3733. The "/spool" directory and its sub-directories are used by the bbs, SMTP  and
  3734. NNTP  services.  The areas, forward.bbs, history, mail.log and rewrite confi-
  3735. guration files are located here.  The /spool/news  directory  can  have  many
  3736. subdirectories  and each subdirectory can have subdirectories. Newsgroups are
  3737. split into heirarchical directory structures. A  news  article  in  newsgroup
  3738. rec.amateur.radio.packet           will           end          up          in
  3739. /spool/news/rec/amateur/radio/packet.txt.
  3740.  
  3741. 7.1.  The /ftpusers File
  3742.  
  3743. Since MS-DOS is a single-user operating system (some might say it is a glori-
  3744. fied bootstrap loader), it provides no access control; all files can be read,
  3745. written or deleted by the local user.  It is usually undesirable to give such
  3746. open  access to a system to remote network users.  Net therefore provides its
  3747. own access control mechanisms.
  3748.  
  3749. The file ftpusers controls remote FTP and mailbox access.  The FTP default is
  3750. no  access;  if this file does not exist, the FTP server will be unusable.  A
  3751. remote user must first "log in" to the system with the  USER  and  PASS  com-
  3752. mands,  giving a valid name and password listed in ftpusers, before he or she
  3753. can transfer files.
  3754.  
  3755. Each entry in ftpusers consists of a single line of the form
  3756.  
  3757. username password /path permissions
  3758.  
  3759.  
  3760.  
  3761.  
  3762.  
  3763.  
  3764.                                    - 58 -
  3765. There must be exactly four fields,  and  there  must  be  exactly  one  space
  3766. between  each  field.   Comments  may be added after the last field.  Comment
  3767. lines begin with '#' in column one.
  3768.  
  3769. username is the user's login name.
  3770.  
  3771. password is the required password.  Note that this is in plain  text;  there-
  3772. fore it is not a good idea to give general read permission to the root direc-
  3773. tory.  A password of '*' (a single  asterisk)  means  that  any  password  is
  3774. acceptable.
  3775.  
  3776. /path is the allowable prefix on accessible files.  Before any file or direc-
  3777. tory  operation,  the current directory and the user- specified file name are
  3778. joined to form an absolute path name in "canonical" form (i.e., a  full  path
  3779. name  starting at the root, with "./" and "../" references, as well as redun-
  3780. dant /'s, recognized and removed).  The result MUST begin with the  allowable
  3781. path  prefix;  if not, the operation is denied.  This field must always begin
  3782. with a "/", i.e., at the root directory.  Multiple directories can be  speci-
  3783. fied by separating them with a ";" caracter and no whitespace around them.
  3784.  
  3785. permissions is a decimal number granting  permission  for  read,  create  and
  3786. write  operations.  If the low order bit (0x1) is set, the user is allowed to
  3787. read a file subject to the path name prefix restriction.   If  the  next  bit
  3788. (0x2)  is  set,  the  user  is  allowed  to  create a new file if it does not
  3789. overwrite an existing file.  If the third bit  (0x4)  is  set,  the  user  is
  3790. allowed  to write a file even if it overwrites an existing file, and in addi-
  3791. tion he may delete files.  Again, all operations are allowed subject  to  the
  3792. path  name  prefix restrictions.  Permissions may be combined by adding bits,
  3793. for example, 0x3 (= 0x2 + 0x1) means that the user is given read  and  create
  3794. permission, but not overwrite/delete permission.
  3795.  
  3796. Additional permission bits used by the mailbox and PPP are:
  3797.  
  3798.   1   Read files
  3799.   2   Create new files
  3800.   4   Overwrite and delete existing files
  3801.   8   AX.25 gateway operation allowed
  3802.   16  Telnet gateway operation allowed
  3803.   32  NET/ROM gateway operation allowed
  3804.   64  Remote sysop access allowed (DANGEROUS)
  3805.   128 This user is banned from BBS access (illegal user)
  3806.   256 Priv bit for PPP connection
  3807.   512 Priv bit for peerID/pass lookup
  3808.  
  3809.  
  3810. A username of univperm has special meaning in the  validation  meganism.   If
  3811. univperm  is  included as a valid user in ftpusers then any unknown user (not
  3812. in ftpusers) will be mapped into univperm and get  its  permission  bits  and
  3813. file path. If univperm is not included in ftpusers unknown users are not per-
  3814. mitted nor validated.
  3815.  
  3816. For example, suppose ftpusers on machine pc.ka9q.ampr.org contains the line
  3817.  
  3818. friendly test /testdir 7
  3819.  
  3820.  
  3821. A session using this account would look like this:
  3822.  
  3823.  
  3824.  
  3825.  
  3826.  
  3827.  
  3828.  
  3829.  
  3830.                                    - 59 -
  3831.  
  3832. net> ftp pc.ka9q.ampr.org
  3833. Resolving pc.ka9q.ampr.org... Trying 128.96.160.1...
  3834. FTP session 1 connected to pc.ka9q.ampr.org
  3835. 220 pc.ka9q.ampr.org FTP version 900418 ready at Mon May 7 16:27:18 1990
  3836. Enter user name: friendly
  3837. 331 Enter PASS command
  3838. Password: test [not echoed]
  3839. 230 Logged in
  3840. ftp>
  3841.  
  3842.  
  3843. The user now has read, write, overwrite and delete privileges  for  any  file
  3844. under /testdir; he may not access any other files.
  3845.  
  3846. Here are some more sample entries in ftpusers:
  3847.  
  3848. karn foobar / 7         # User "karn" with password "foobar" may read,
  3849.                         # write, overwrite and delete any file on the
  3850.                         # system.
  3851.  
  3852. guest bletch /g/bogus;/public 3
  3853.                         # User "guest" with password "bletch" may read
  3854.                         # any file under /g/bogus and its subdirectories,
  3855.                         # and /public and its subdirectories,
  3856.                         # and may create a new file as long as it does
  3857.                         # not overwrite an existing file. He may NOT
  3858.                         # delete any files.
  3859.  
  3860. anonymous * /public 1   # User "anonymous" (any password) may read files
  3861.                         # under /public and its subdirectories; he may
  3862.                         # not create, overwrite or delete any files.
  3863.  
  3864.  
  3865. This last entry is the standard convention for keeping a repository of public
  3866. files; in particular, the username "anonymous" is an established ARPA conven-
  3867. tion.
  3868.  
  3869. 7.2.  The /popusers File
  3870.  
  3871. Here are the username / password combinations defined for the POP users.   It
  3872. has a simple convention:
  3873.  
  3874. user:password:
  3875.  
  3876. for every POP user such a line has to be added. The user and password  fields
  3877. sould  match  the  pop  userdata statement of the remote user.  Both user and
  3878. password have to be delimited with a colon character.
  3879.  
  3880. 7.3.  The /net.rc File
  3881.  
  3882. The net.rc file is a fast login file for known ftp stations. Each line starts
  3883. with the name of the ftp station. Following are a user and password statemend
  3884. to be send to the server for validation.  The name,  user  and  password  are
  3885. separated  with a space. Not a tab or more than 1 space character.  Following
  3886. is a sample net.rc file.
  3887.  
  3888. ucsd.edu anonymous gvdg@gvdgpc.cdh.cdc.com
  3889. ka9q.ampr.org guest pa0gri
  3890.  
  3891.  
  3892.  
  3893.  
  3894.  
  3895.  
  3896.                                    - 60 -
  3897. 7.4.  The /domain.txt File
  3898.  
  3899. Nos translates domain names (eg. "pc.ka9q.ampr.org")  to  IP  addresses  (eg.
  3900. 128.96.160.3) through the use of an Internet Domain Name resolver and a local
  3901. "cache" file, domain.txt.  Whenever the user specifies  a  domain  name,  the
  3902. local cache is searched for the desired entry.  If it is present, it is used;
  3903. if not, and if domain name server(s) have been configured, a  query  is  sent
  3904. over  the  network to the current server.  If the server responds, the answer
  3905. is added to the domain.txt file for future  use.   If  the  server  does  not
  3906. respond,  any  additional  servers  on  the  list  are tried in a round-robin
  3907. fashion until one responds, or the retry limit is  reached  (see  the  domain
  3908. retry  command).   If domain.txt does not contain the desired entry and there
  3909. are no configured domain name servers, then the request immediately fails.
  3910.  
  3911. If a domain name server is available, and if all references  to  host-ids  in
  3912. your  /autoexec.nos  file  are  in  IP address format, then it is possible to
  3913. start with a completely empty domain.txt file and have Nos build it for  you.
  3914. However,  you  may wish to add your own entries to domain.txt, either because
  3915. you prefer to use symbolic domain names in your  /autoexec.nos  file  or  you
  3916. don't  have  access to a domain server and you need to create entries for all
  3917. of the hosts you may wish to access.
  3918.  
  3919. Each entry takes one line, and the fields are separated by tabs.   For  exam-
  3920. ple:
  3921.  
  3922. pc.ka9q.ampr.org.       IN      A       128.96.160.3
  3923.  
  3924. IN is the class of the record.  It means Internet, and it will  be  found  in
  3925. all  entries.   A  is  the  type  of the record, and it means that this is an
  3926. address record.  Domain name pc.ka9q.ampr.org therefore has Internet  address
  3927. 128.96.160.3.
  3928.  
  3929. Another possible entry is the CNAME (Canonical Name) record.  For example:
  3930.  
  3931. ka9q.ampr.org.          IN      CNAME   pc.ka9q.ampr.org.
  3932.  
  3933. This says that domain name "ka9q.ampr.org" is actually an alias for the  sys-
  3934. tem  with  (primary,  or  canonical)  domain name "pc.ka9q.ampr.org."  When a
  3935. domain name having a CNAME record is given to Nos, the  system  automatically
  3936. follows  the reference to the canonical name and returns the IP address asso-
  3937. ciated with that entry.
  3938.  
  3939. Entries added automatically by Nos will have an additional field between  the
  3940. domain name and the class (IN) field.  For example:
  3941.  
  3942. pc.ka9q.ampr.org.       3600    IN      A       128.96.160.3
  3943.  
  3944. This is the time-to-live  value,  in  seconds,  associated  with  the  record
  3945. received  from  the  server.  Clients (such as Nos) caching these records are
  3946. supposed to delete them after the time-to-live interval has expired, allowing
  3947. for  the  possibility  that  the  information in the record may become out of
  3948. date.
  3949.  
  3950. This implementation of Nos will decrement the  TTL  to  zero,  but  will  not
  3951. delete  the  record unless the "clean" flag is on (see the domain cache clean
  3952. command).  When a remote server is not available, the old entry will be used.
  3953.  
  3954. When the TTL value is missing (as in the examples  above),  the  record  will
  3955. never  expire, and must be managed by hand.  Since domain.txt is a plain text
  3956. file, it may be easily edited by the user to add, change or delete records.
  3957.  
  3958.  
  3959.  
  3960.  
  3961.  
  3962.                                    - 61 -
  3963. Additional types of records, include NS  (name  server)  and  SOA  (start  of
  3964. authority)  may  appear in domain.txt from remote server responses. These are
  3965. not currently used by Nos but are retained for future  development  (such  as
  3966. the incorporation of a domain name server into Nos itself).
  3967.  
  3968. 7.5.  The /alias file.
  3969.  
  3970. SMTP server ALIAS file. This is for resolving a given target address  into  a
  3971. single or multiple entry mail list.
  3972.   Format:
  3973.     mail_list_name call_1@host_1 [call_2@host_2]......# comments
  3974.  
  3975.     pa0gri gvdg@fridley.cdh.cdc.com
  3976.     kelvin g1emm@g1emm.ampr.org
  3977.     #
  3978.     bob    gb3xp@gb3xp.ampr.org
  3979.     ian    g3rra@g3rra.ampr.org
  3980.     jim    g1wkk@g1wkk.ampr.org
  3981.     john   g5ds%gb3kp@gb3xp.ampr.org
  3982.     ted    gb3kp%gb3kp@gb3xp.ampr.org
  3983.     ron    g6vug@g6vug.ampr.org
  3984.     tim    g4uqe@g4uqe.ampr.org
  3985.     gareth g6kvk%gb7spv@gb3xp.ampr.org
  3986.     bolton gb7tcp%gb7crg@gb3xp.ampr.org
  3987.     julian g7efe%gb7cfb@gb3xp.ampr.org
  3988.     #
  3989.     world  g3rra@g3rra.ampr.org gb3xp@gb3xp.ampr.org g1plt@g1plt.ampr.org
  3990.        g1wkk@g1wkk.ampr.org g8kwi@g8kwi.ampr.org g6kvk%gb7spv@gb3xp.ampr.org
  3991.        g1ttg@g1ttg.ampr.org g6vug@g6vug.ampr.org g6kqz@g6kqz.ampr.org
  3992.        g4uqe@g4uqe.ampr.org g8ogr@g8ogr.ampr.org g4xwv@g4xwv.ampr.org
  3993.     #
  3994.     locals g3rra@g3rra.ampr.org g1wkk@g1wkk.ampr.org g8kwi@g8kwi.ampr.org
  3995.        g4bio@g4bio.ampr.org g1plt@g1plt.ampr.org g4uqe@g4uqe.ampr.org
  3996.        g6kqz@g6kqz.ampr.org g4tnu@g4tnu.ampr.org g6xqb@g6xqb.ampr.org
  3997.  
  3998. Note that it is reaonable, and sometimes desiable, to have alias  records  in
  3999. the form:
  4000.  
  4001.    area  area dest1 dest2
  4002.  
  4003. As the /alias file is scanned only once, this does not result in an  infinite
  4004. recursion.
  4005.  
  4006. 7.6.  The /spool/areas file.
  4007.  
  4008. This file is a header file shown to a mailbox user when  he  requests  the  a
  4009. display. It should show all public mailboxes to read. Here is a sample:
  4010.     -------------  Public  --  Mail  --  Areas  -------------
  4011.                                                             |
  4012.     General    --    Any old chit-chat that is clean.       |
  4013.     TcpIp      --    General Tcp/Ip messages. NOS etc.      |
  4014.     Bugs       --    Where to report bugs in Ka9q-NOS       |
  4015.     Updates    --    Info - NOS version UPDATES by G1EMM.   |
  4016.                                                             |
  4017.     ---------------------------------------------------------
  4018.  
  4019. 7.7.  The /spool/forward.bbs file.
  4020.  
  4021. The mailbox reads a forwarding file,  spool/forward.bbs.  Here  is  a  sample
  4022. file.
  4023.     wb0ttw 0006
  4024.  
  4025.  
  4026.  
  4027.  
  4028.                                    - 62 -
  4029.     ax25 ax0 wb0ttw
  4030.     wb0ttw
  4031.     w0tn
  4032.     mspbul
  4033.     all
  4034.     ------
  4035.     wb0gdb
  4036.     netrom #msparh
  4037.     ..c msparh
  4038.     all
  4039.     ------ The first word on the first line in a  forwarding  record  is  the
  4040. name  of the BBS to forward to. This should be the same type of name which is
  4041. shown by the mbox status command. The second word is optional. It specifies a
  4042. range  of  hours  when  forwarding may take place. 0006 means that there will
  4043. only be forwarding to this station between midnight and 6am.
  4044.  
  4045. The second line specifies how to establish the connection.  It  should  start
  4046. with  the  protocol (ax25, connect, tcp, telnet or netrom) and be followed by
  4047. all the parameters which are nessesary when Nos has to  establish  a  connec-
  4048. tion.
  4049.  
  4050. Directly after the second line, there may be lines that  start  with  a  dot.
  4051. What follows after the dot will be send to the remote BBS as soon as the con-
  4052. nection is established.
  4053.  
  4054. Then follows the names of a number  of  message  areas,  publib  or  private.
  4055. Finally,  there  should  be a couple of '-' signs to separate one  forwarding
  4056. record from another. Also terminate the file with a last line of dashes.
  4057.  
  4058. 7.8.  The /spool/rewrite file.
  4059.  
  4060. Read the rewrite file for lines where the first word is a regular  expression
  4061. and the second word are rewriting rules.  An optional third field, containing
  4062. just the letter "r", when present, instructs Nos to restart the rewrite file,
  4063. using  the  new destination address.  The special character '$' followed by a
  4064. digit denotes the string that matched a '*' character. The '*' characters are
  4065. numbered from 1 to 9.  Example: the line "*@*.* $2@$1.ampr.org" would rewrite
  4066. the address "foo@bar.xxx" to "bar@foo.ampr.org".
  4067.     #
  4068.     *@g1emm.ampr.org $1
  4069.     *@g1emm.ampr $1
  4070.     *@g1emm $1
  4071.     #
  4072.     *!*!*!*!*!*!* $7%$6@$5@$4@$3@$2@$1
  4073.     *!*!*!*!*!* $6%$5@$4@$3@$2@$1
  4074.     *!*!*!*!* $5%$4@$3@$2@$1
  4075.     *!*!*!* $4%$3@$2@$1
  4076.     *!*!* $3%$2@$1
  4077.     *!* $2@$1
  4078.     !* $1 r
  4079.     #
  4080.     # The End
  4081.  
  4082.  
  4083.  
  4084.  
  4085.  
  4086.  
  4087.  
  4088.  
  4089.  
  4090.  
  4091.  
  4092.  
  4093.  
  4094.                                    - 63 -
  4095. 8.  Setting Bufsize, Paclen, Maxframe, MTU, MSS and Window
  4096.  
  4097. Many Nos users are confused by these parameters and do not know  how  to  set
  4098. them  properly. This chapter will first review these parameters and then dis-
  4099. cuss how to choose values for them. Special emphasis  is  given  to  avoiding
  4100. interoperability  problems  that  may  appear when communicating with non-Nos
  4101. implementations of AX.25.
  4102.  
  4103. 8.1.  Hardware Parameters
  4104.  
  4105.  
  4106. 8.1.1.  Bufsize
  4107.  
  4108. This parameter is required by most of Nos's built-in HDLC drivers (eg.  those
  4109. for  the  DRSI  PCPA  and  the  Paccomm PC-100). It specifies the size of the
  4110. buffer to be allocated for each receiver port. HDLC frames larger  than  this
  4111. value cannot be received.
  4112.  
  4113. There is no default bufsize; it must be specified in the attach  command  for
  4114. the interface.
  4115.  
  4116. 8.2.  AX25 Parameters
  4117.  
  4118. 8.2.1.  Paclen
  4119.  
  4120. Paclen limits the size of the data field in an AX.25 I-frame. This value does
  4121. not  include  the  AX.25  protocol header (source, destination and digipeater
  4122. addresses).
  4123.  
  4124. Since unconnected-mode (datagram) AX.25 uses UI frames, this parameter has no
  4125. effect in unconnected mode.
  4126.  
  4127. The default value of paclen is 256 bytes.
  4128.  
  4129. 8.2.2.  Maxframe
  4130.  
  4131. This parameter controls the number of I-frames that Nos may send on an  AX.25
  4132. connection  before  it  must stop and wait for an acknowledgement.  Since the
  4133. AX.25/LAPB sequence number field is 3 bits wide, this number cannot be larger
  4134. than 7.
  4135.  
  4136. Since unconnected-mode (datagram) AX.25 uses  UI  frames  that  do  not  have
  4137. sequence numbers, this parameter does not apply to unconnected mode.
  4138.  
  4139. The default value of maxframe in Nos is 1 frame.
  4140.  
  4141. 8.3.  IP and TCP Parameters
  4142.  
  4143. 8.3.1.  MTU
  4144.  
  4145. The MTU (Maximum Transmission Unit) is an interface parameter that limits the
  4146. size  of  the largest IP datagram that it may handle.  IP datagrams routed to
  4147. an interface that are larger than its MTU are each split  into  two  or  more
  4148. fragments.  Each fragment has its own IP header and is handled by the network
  4149. as if it were a distinct IP datagram, but when it arrives at the  destination
  4150. it  is held by the IP layer until all of the other fragments belonging to the
  4151. original datagram have arrived. Then they are reassembled back into the  com-
  4152. plete,  original  IP  datagram.  The  minimum  acceptable interface MTU is 28
  4153. bytes: 20 bytes for the IP (fragment) header, plus 8 bytes of data.
  4154.  
  4155. There is no default MTU in Nos; it must  be  explicitly  specified  for  each
  4156.  
  4157.  
  4158.  
  4159.  
  4160.                                    - 64 -
  4161. interface as part of the attach command.
  4162.  
  4163. 8.3.2.  MSS
  4164.  
  4165. MSS (Maximum Segment Size) is a TCP-level parameter that limits the amount of
  4166. data  that  the  remote  TCP will send in a single TCP packet. MSS values are
  4167. exchanged in the SYN (connection request) packets that open a TCP connection.
  4168. In  the  Nos  implementation  of TCP, the MSS actually used by TCP is further
  4169. reduced in order to avoid fragmentation at the local IP interface.  That  is,
  4170. the local TCP asks IP for the MTU of the interface that will be used to reach
  4171. the destination. It then subtracts 40 from the MTU value  to  allow  for  the
  4172. overhead  of  the  TCP  and  IP  headers.  If the result is less than the MSS
  4173. received from the remote TCP, it is used instead.
  4174.  
  4175. The default value of MSS is 512 bytes.
  4176.  
  4177. 8.3.3.  Window
  4178.  
  4179. This is a TCP-level parameter that controls how much data the local TCP  will
  4180. allow the remote TCP to send before it must stop and wait for an acknowledge-
  4181. ment. The actual window value used by TCP when deciding how much more data to
  4182. send  is  referred  to  as  the effective window.  This is the smaller of two
  4183. values: the window advertised by the remote TCP minus the unacknowledged data
  4184. in  flight, and the congestion window, an automatically computed time-varying
  4185. estimate of how much data the network can handle.
  4186.  
  4187. The default value of Window is 2048 bytes.
  4188.  
  4189. 8.4.  Discussion
  4190.  
  4191.  
  4192. 8.4.1.  IP Fragmentation vs AX.25 Segmentation
  4193.  
  4194. IP-level fragmentation often makes it possible to interconnect two dissimilar
  4195. networks,  but it is best avoided whenever possible.  One reason is that when
  4196. a single IP fragment is lost, all  other  fragments  belonging  to  the  same
  4197. datagram   are  effectively  also  lost  and  the  entire  datagram  must  be
  4198. retransmitted by the source.  Even without loss, fragments require the  allo-
  4199. cation of temporary buffer memory at the destination, and it is never easy to
  4200. decide how long to wait for missing fragments before giving up and discarding
  4201. those  that  have already arrived.  A reassembly timer controls this process.
  4202. In Nos it is  (re)initialized  with  the  ip  rtimer  parameter  (default  30
  4203. seconds)  whenever  progress  is made in reassembling a datagram (i.e., a new
  4204. fragment is received).  It is not necessary that all of the fragments belong-
  4205. ing  to  a  datagram  arrive  within a single timeout interval, only that the
  4206. interval between fragments be less than the timeout.
  4207.  
  4208. Most subnetworks that carry IP have MTUs of 576 bytes or more,  so  intercon-
  4209. necting  them  with subnetworks having smaller values can result in consider-
  4210. able fragmentation. For this reason, IP implementors working  with  links  or
  4211. subnets having unusually small packet size limits are encouraged to use tran-
  4212. sparent fragmentation, that is, to  devise  schemes  to  break  up  large  IP
  4213. datagrams  into  a  sequence  of  link  or subnet frames that are immediately
  4214. reassembled on the other end of the link or subnet into the  original,  whole
  4215. IP  datagram without the use of IP-level fragmentation. Such a scheme is pro-
  4216. vided in AX.25 Version 2.1.  It can break a large IP or NET/ROM datagram into
  4217. a  series  of  paclen-sized  AX.25 segments (not to be confused with TCP seg-
  4218. ments), one per AX.25 I-frame, for transmission and reassemble  them  into  a
  4219. single  datagram  at the other end of the link before handing it up to the IP
  4220. or NET/ROM module.   Unfortunately,  the  segmentation  procedure  is  a  new
  4221. feature  in  AX.25  and is not yet widely implemented; in fact, Nos is so far
  4222.  
  4223.  
  4224.  
  4225.  
  4226.                                    - 65 -
  4227. the only known implementation. This creates  some  interoperability  problems
  4228. between  Nos  and  non-Nos nodes, in particular, standard NET/ROM nodes being
  4229. used to carry IP datagrams. This problem is discussed further in the  section
  4230. on setting the MTU.
  4231.  
  4232. 8.4.2.  Setting paclen and bufsize
  4233.  
  4234. The more data you put into an AX.25 I frame, the smaller  the  AX.25  headers
  4235. are  in  relation  to  the  total  frame  size. In other words, by increasing
  4236. paclen, you lower the AX.25  protocol  overhead.  Also,  large  data  packets
  4237. reduce  the overhead of keying up a transmitter, and this can be an important
  4238. factor with higher speed modems. On the other hand, large frames make  bigger
  4239. targets  for noise and interference. Each link has an optimum value of paclen
  4240. that is best discovered by experiment.
  4241.  
  4242. Another thing to remember when setting paclen is that the AX.25  version  2.0
  4243. specification  limits  it  to  256 bytes. Although Nos can handle much larger
  4244. values, some other AX.25 implementations (including digipeaters)  cannot  and
  4245. this may cause interoperability problems. Even Nos may have trouble with cer-
  4246. tain KISS TNCs because of fixed-size buffers. The original KISS TNC code  for
  4247. the  TNC-2  by  K3MC can handle frames limited in size only by the RAM in the
  4248. TNC, but some other KISS TNCs cannot.
  4249.  
  4250. Nos's built-in HDLC drivers (SCC, PC-100, DRSI, etc) allocate receive buffers
  4251. according  to  the maximum expected frame size, so it is important that these
  4252. devices be configured with the correct bufsize. To do this, you must know the
  4253. size of the largest possible frame that can be received. The paclen parameter
  4254. controls only the size of the data field in an I-frame and not the total size
  4255. of  the  frame  as it appears on the air. The AX.25 spec allows up to 8 digi-
  4256. peaters, so the largest possible frame is (paclen + 72) bytes. So you  should
  4257. make bufsize at least this large.
  4258.  
  4259. Another important consideration is that  the  more  recent  versions  of  NOS
  4260. improve  interrupt  response by maintaining a special pool of buffers for use
  4261. by the receive routines.  These buffers are currently fixed in size  to  2048
  4262. bytes  and  this can be changed only by editing config.h and recompiling NOS.
  4263. This limits bufsize; in fact, attempting to set a larger value may cause  the
  4264. driver  not  to  work  at  all. This situation can be detected by running the
  4265. memory status command and looking for a non-zero count  of  Ibuffail  events,
  4266. although these events can also occur occasionally during normal operation.
  4267.  
  4268. One of the drawbacks of AX.25 that there is no way for one  station  to  tell
  4269. another  how  large a packet it is willing to accept.  This requires the sta-
  4270. tions sharing a channel to agree beforehand on a maximum packet size.  TCP is
  4271. different, as we shall see.
  4272.  
  4273. 8.4.3.  Setting Maxframe
  4274.  
  4275. For best performance on a half-duplex radio channel, maxframe  should  always
  4276. be  set  to  1.  The  reasons are explained in the paper Link Level Protocols
  4277. Revisited by Brian Lloyd and Phil Karn, which appeared in the proceedings  of
  4278. the ARRL 5th Computer Networking Conference in 1986.
  4279.  
  4280. 8.4.4.  Setting MTU
  4281.  
  4282. TCP/IP header overhead considerations similar to those  of  the  AX.25  layer
  4283. when  setting paclen apply when choosing an MTU.  However, certain subnetwork
  4284. types supported by Nos have well-established MTUs, and these should always be
  4285. used  unless  you  know  what  you're doing: 1500 bytes for Ethernet, and 508
  4286. bytes for ARCNET.  The MTU for PPP is automatically negotiated, and  defaults
  4287. to  1500.   Other  subnet  types,  including  SLIP and AX.25, are not as well
  4288.  
  4289.  
  4290.  
  4291.  
  4292.                                    - 66 -
  4293. standardized.
  4294.  
  4295. SLIP has no official MTU, but the most common implementation (for  BSD  UNIX)
  4296. uses  an MTU of 1006 bytes.  Although Nos has no hard wired limit on the size
  4297. of a received SLIP frame, this is not true for other systems.  Interoperabil-
  4298. ity problems may therefore result if larger MTUs are used in Nos.
  4299.  
  4300. Choosing an MTU for an AX.25 interface is more complex.  When  the  interface
  4301. operates  in  datagram  (UI-frame) mode, the paclen parameter does not apply.
  4302. The MTU effectively becomes the paclen of the link.   However,  as  mentioned
  4303. earlier,  large packets sent on AX.25 connections are automatically segmented
  4304. into I-frames no larger than paclen bytes.  Unfortunately, as also  mentioned
  4305. earlier, Nos is so far the only known implementation of the new AX.25 segmen-
  4306. tation procedure. This is fine as long as all of the NET/ROM  nodes  along  a
  4307. path  are  running  Nos, but since the main reason Nos supports NET/ROM is to
  4308. allow use of existing NET/ROM networks, this is unlikely.
  4309.  
  4310. So it is usually important to avoid AX.25 segmentation when running  IP  over
  4311. NET/ROM.   The way to do this is to make sure that packets larger than paclen
  4312. are never handed to AX.25.  A NET/ROM transport header is 5 bytes long and  a
  4313. NET/ROM  network header takes 15 bytes, so 20 bytes must be added to the size
  4314. of an IP datagram when figuring the size of the AX.25 I-frame data field.  If
  4315. paclen is 256, this leaves 236 bytes for the IP datagram. This is the default
  4316. MTU of the netrom pseudo-interface, so as long as  paclen  is  at  least  256
  4317. bytes,  AX.25  segmentation can't happen. But if smaller values of paclen are
  4318. used, the netrom MTU must also be reduced with the ifconfig command.
  4319.  
  4320. On the other hand, if you're running IP directly on top of AX.25, chances are
  4321. all  of  the  nodes  are running Nos and support AX.25 segmentation.  In this
  4322. case there is no reason not to use a larger MTU and let AX.25 segmentation do
  4323. its  thing.  If  you  choose  an MTU on the order of 1000-1500 bytes, you can
  4324. largely avoid IP-level fragmentation and reduce TCP/IP-level header  overhead
  4325. on  file transfers to a very low level.  And you are still free to pick what-
  4326. ever paclen value is appropriate for the link.
  4327.  
  4328. 8.4.5.  Setting MSS
  4329.  
  4330.  
  4331. The setting of this TCP-level parameter is somewhat less critical than the IP
  4332. and  AX.25 level parameters already discussed, mainly because it is automati-
  4333. cally lowered according to the MTU of the local interface when  a  connection
  4334. is  created.  Although this is, strictly speaking, a protocol layering viola-
  4335. tion (TCP is not supposed to have any knowledge  of  the  workings  of  lower
  4336. layers)  this  technique  does  work  well  in  practice.  However, it can be
  4337. fooled; for example, if a routing change occurs after the connection has been
  4338. opened  and  the new local interface has a smaller MTU than the previous one,
  4339. IP fragmentation may occur in the local system.
  4340.  
  4341. The only drawback to setting a large MSS is that  it  might  cause  avoidable
  4342. fragmentation  at  some  other point within the network path if it includes a
  4343. "bottleneck" subnet with an MTU smaller than that  of  the  local  interface.
  4344. (Unfortunately,  there  is  presently  no  way to know when this is the case.
  4345. There is ongoing work within the Internet Engineering Task Force  on  a  "MTU
  4346. Discovery"  procedure to determine the largest datagram that may be sent over
  4347. a given path without fragmentation, but it is not yet complete.)  Also, since
  4348. the  MSS  you specify is sent to the remote system, and not all other TCPs do
  4349. the MSS-lowering procedure yet, this might cause the remote  system  to  gen-
  4350. erate IP fragments unnecessarily.
  4351.  
  4352. On the other hand, a too-small MSS can result in a  considerable  performance
  4353. loss,  especially  when operating over fast LANs and networks that can handle
  4354.  
  4355.  
  4356.  
  4357.  
  4358.                                    - 67 -
  4359. larger packets. So the best value for MSS is probably 40 less than the  larg-
  4360. est  MTU  on your system, with the 40-byte margin allowing for the TCP and IP
  4361. headers. For example, if you have a SLIP interface with a 1006 byte  MTU  and
  4362. an  Ethernet  interface  with  a  1500  byte MTU, set MSS to 1460 bytes. This
  4363. allows you to receive maximum-sized Ethernet packets, assuming  the  path  to
  4364. your system does not have any bottleneck subnets with smaller MTUs.
  4365.  
  4366. 8.4.6.  Setting Window
  4367.  
  4368. A sliding window protocol like TCP cannot transfer  more  than  one  window's
  4369. worth  of data per round trip time interval. So this TCP-level parameter con-
  4370. trols the ability of the remote TCP to keep a long "pipe" full. That is, when
  4371. operating  over  a path with many hops, offering a large TCP window will help
  4372. keep all those hops busy when you're  receiving  data.  On  the  other  hand,
  4373. offering  too  large a window can congest the network if it cannot buffer all
  4374. that data. Fortunately, new algorithms for dynamic controlling the  effective
  4375. TCP  flow  control window have been developed over the past few years and are
  4376. now widely deployed.  Nos includes them, and you can  watch  them  in  action
  4377. with  the  tcp  status  <tcb> or socket <sockno> commands.  Look at the cwind
  4378. (congestion window) value.
  4379.  
  4380. In most cases it is safe to set the TCP window to a small integer multiple of
  4381. the  MSS,  (eg.  4times),  or  larger  if  necessary  to fully utilize a high
  4382. bandwidth*delay product path. One thing to keep in  mind,  however,  is  that
  4383. advertising a certain TCP window value declares that the system has that much
  4384. buffer space available for incoming data.  Nos does not actually  preallocate
  4385. this space; it keeps it in a common pool and may well "overbook" it, exploit-
  4386. ing the fact that many TCP connections are idle for long periods and gambling
  4387. that  most  applications will read incoming data from an active connection as
  4388. soon as it arrives, thereby quickly freeing the buffer memory.   However,  it
  4389. is possible to run Nos out of memory if excessive TCP window sizes are adver-
  4390. tised and either the applications go to  sleep  indefinitely  (eg.  suspended
  4391. Telnet  sessions)  or  a  lot of out-of-sequence data arrives.  It is wise to
  4392. keep an eye on the amount of available memory and to decrease the TCP  window
  4393. size (or limit the number of simultaneous connections) if it gets too low.
  4394.  
  4395. Depending on the channel access method and link level protocol, the use of  a
  4396. window  setting  that exceeds the MSS may cause an increase in channel colli-
  4397. sions. In particular, collisions between  data  packets  and  returning  ack-
  4398. nowledgements  during  a  bulk file transfer may become common. Although this
  4399. is, strictly speaking, not TCP's fault, it is possible  to  work  around  the
  4400. problem  at  the  TCP  level  by  decreasing  the window so that the protocol
  4401. operates in stop-and-wait mode.  This is done  by  making  the  window  value
  4402. equal to the MSS.
  4403.  
  4404. 8.5.  Summary
  4405.  
  4406. In most cases, the default values provided by Nos for each of  these  parame-
  4407. ters  will  work  correctly  and give reasonable performance. Only in special
  4408. circumstances such as operation over a very poor link or experimentation with
  4409. high speed modems should it be necessary to change them.
  4410.  
  4411.  
  4412.  
  4413.  
  4414.  
  4415.  
  4416.  
  4417.  
  4418.  
  4419.  
  4420.  
  4421.  
  4422.  
  4423.